Unix Quick Reference


Commands


Commands

Unix commands are case-sensitive, and are usually lower-case only. The following table contains common tasks and commands to carry out those tasks. For more information on all the options available for each command, use the man command. For example, man ls will show you a manual page for the command ls.

The [filename] can refer to a complete or relative path as well as a filename only. A complete pathname would look something like: /export/home/johnson/myfile.html. A relative path would look something like: johnson/myfile.html

In addition, check out UNI's Unix Help Utility at http://www.uni.edu/unixhelp or contact the Computer Consulting Center.

Unix Quick Reference
Desired FunctionCommand
Change your passwordpasswd
List filesls
See who else is logged onwho
View the contents of a filemore [filename] or cat [filename]
Print a file on the system printerlp [filename]
Copy one file to anothercp [source-file] [destination-file]
Change the name of a file or to move a filemv [old-file] [new-file]
Delete a filerm [filename]
Create a new directorymkdir [directoryname]
Delete a directoryrmdir [directoryname]
Change your current directorycd [directoryname]
Display current directory namepwd
Send or Read e-mailmailx or elm or pine
Exit the system[Control-D] or exit
Sort a filesort [infile] >[outfile]
Edit a filevi or ee or pico or vim

unixref