Networking

Basic UNIX commands

Use this reference page to identify some basic UNIX commands.

Refer to this abbreviated list whenever you find yourself in a Unix shell and can't remember if you need to use ls or dir to view directories.

Directory commands
cdChange the working directory
findFind a file by name or by other characteristics
mkdirMake a directory
rmdirRemove a directory
 
File manipulation commands
catConcatenate and display a file
chmodChange the permissions mode of a file
chownChange the owner and/or group of a file
cpCopy a file
diffDisplay differences between pairs of text files
grepSearch a file for a specific text string
mvMove or rename a file
rmRemove a file
 
Display commands
datePrint the date and time
fingerDisplay information about a user
headDisplay the first few lines of a file
lessBrowse a text file
lsList the contents of a directory
manDisplay a reference manual page
moreDisplay a text file
pwdDisplay the working directory pathname
tailDisplay the end of a file
whoDisplay who is on the system
 
Process commands
exitTerminate a process
killTerminate or send a signal to a process
passwdCreate or change a password
psDisplay the status of a process
telnetConnect to a remote system using the Telnet protocol

10 comments
The Scummy One
The Scummy One

Ok, I know some of these, but others just have not sunk into my brain properly. Here is the list chown -- sounds like some bad food finger -- when I am thinking of this, the comp is not on my mind. head -- quite a few things come to mind, but not anything with a file. In fact, a file seems like it would hurt. less -- it is just not worth striving for. pwd -- this just confuses me with password. tail -- what I would be chasing if I werent home sick who -- not likely to use this much, as I should know who I am. passwd -- I would likely try the wrong one first a few times -- see pwd. Ok, it might be good to mention how to get a process id to kill the process. mentioning kill and not ps (ps displays running processes)is useless. A few other good commands to know for beginner tech's would be !! -- relist the last command typed at the prompt !%%% -- ! followed by the first few letters of a recent command, brings it up ifconfig -- displays IP configuration arp -- display IP address du -- displays size of files and folders shred -- deletes a file by overwriting the contents (more secure) sudo -- allows for root access top -- system information

---TK---
---TK---

dhclient - release and renew's IP address ctrl+alt+(F1-F7) - F1-F6 are terminals and F7 is the GUI Shift+double tap Z - Save the document and exit in CLI or terminal Sudo -i - keeps you in root

seanferd
seanferd

Close, but it's actually the past tense of 'to chow'. (To eat, to chow down.) For he hath chown no tail today... edit: Holy Smokes is that article old.

seanferd
seanferd

Or do I need to be running SysV? I can't seem to get it to work. Seriously though, did you have a question, or was that sort of a resum?? There is sort of a jobs section in the tabs at the top. So how are things in Hyderabad?

The Scummy One
The Scummy One

but these can be helpful to newbies. For decent coverage of basic Linux commands and info for newbies I prefer www.reallylinux.com P.S. -- Many commands in Linux are the same in Unix.

seanferd
seanferd

a bit like the SysRq key on a terminal, then. :D

The Scummy One
The Scummy One

and automatically screams "USER IS AN ID10T -- SEND HELP NOW". But if there is no sound card it sends the message to all listening computers on the network, and states the users logon, where the machine is, and other pertinent information... :^0

seanferd
seanferd

What does the "Tech Support" command do? :)

Editor's Picks