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