Getting Started with UNIX - A Quick Reference Guide
This quick reference lists the commands presented in this manual
concisely by function. Each listing includes a syntax diagram,
and a brief description of the command.
1. Work Session
1.1. Log In
Type username to system login prompt.
Type password to password prompt.
1.2. Change Password
Type passwd, followed by old password, and repeat new
1.3. Log Out
Type logout or C-D depending upon system setup.
2. File System
2.1. Create File
Type cat >filename, then text ending with
C-D, or see Editing Files.
2.2. Make (or Create) Directory
2.3. Look at File
Type catfilename or morefilename.
2.4. Print File
2.5. List Files and Directories
ls for listing of current directory lsdirectory-name for listing of another
directory lsfilename for listing of a single file ls -t
or ls -tfilename
or ls -tdirectory-name
to get a listing reverse sorted by time of last modification. ls -F
or ls -Fdirectory-name
to get a listing that marks current directory names by appending
a "/" character to them.
2.6. Move (or Rename) Files and Directories
Type mvsource-filename destination filename to
rename a file mvsource-filename destination-directory to
move a file into another directory mvsource-directory-name
destination-directory-name to rename a directory, or move
it into another directory.
2.7. Copy Files
Type cpsource-filename destination-filename
to copy a file into another filename cpsource-filename destination-directory
to copy a file into another directory
2.8. Remove (or Delete) Files
Type rmfilename to remove a file rmdirdirectory-name to remove an empty
directory rm -rdirectory-name to remove a directory and
2.9. Change Working Directory
Type cd to change directories to your home directory cddirectory-name to change directories to
2.10. Find Name of Current Directory
One filename or directory name to access local file or directory.
List of directory names from root directory (first "/") to
desired filename or directory name, each name separated by a
List of directory names from current position to desired filename
or directory name, each name separated by a "/".
2.12. Directory Abbreviation
~ -- Home directory. ~username -- Another user's home directory. . -- Working directory. .. -- Parent of working directory.
3.1. Date and Time
For universal time (Greenwich Mean Time), type date -u.