command |
performs |
example(s) |
---|---|---|
Login prompt at a workstation or X terminal. |
servernm login: yourid | |
Ending a Unix session. |
servernm% logout | |
gives help information about commands, frequently this is very detailed and long |
server% man passwd | |
lists file and directory names; |
server% ls | |
lists contents of a file |
server% cat filenm | |
lists contents of a file, but gives one screenful at a time. |
server% more filenm | |
prints contents of a file to your default printer |
server% lpr filenm | |
lists the printers and designates your default printer |
server% lprloc | |
display the queue of printer jobs on your default printer |
server% lpq | |
removes a print job you submitted |
server% lprm 10 | |
allows you to change your password |
server% passwd | |
determines where an executable is located in your path |
server% which lpr |
Command |
Performs |
Example(s) |
change directories |
server% cd /home/ceng303 | |
remove (delete) one or more file(s) |
server% rm filenm | |
move (rename) one or more files |
server% mv filenm newnm | |
create a new directory |
server% mkdir dirnm | |
delete an empty directory |
server% rmdir dirnm | |
determine the complete name of the current directory. |
server% pwd | |
list the status of current processes running on your server and give id numbers for each. |
server% ps | |
terminate a process |
server% kill 29973 | |
~ |
"home of" applied to a directory |
server% cd ~ceng301 same as: |
wild card for one character |
server% ls file? | |
wild card for any number of characters |
server% ls file* |
Command |
Performs |
Example(s) |
Change file or directory permissions |
server% chmod g-r | |
Compare contents of two files |
server% diff file1 file2 | |
Look for a string in one or more files |
server% grep ceng303 filenm | |
Determine whether a user has an Owlnet account; Get more information about a user. |
server% finger ceng301 |