UNIX Commands

Security Commands

Command

Meaning

Details

passwd change password allows you to change your Andrew password

Directory Commands

Command

Meaning

Details

~ tilde represents your home directory
pwd print working directory tells you where you are in your Andrew space
ls list lists files and directories with no distinction
ls -F list lists contents of a directory by distinguishing directories and files by displaying a slash (/) after the name of each directory
cd change directory  
cd .. change directory one level higher changes directory to one level higher in the directory tree hierarchy
cd ~ change to home directory changes directory to the user's home directory
mkdir make a directory creates a new directory on the specified path
rmdir remove a directory removes a directory (a directory cannot be removed if it contains files or other directories)

 

File Manipulation Commands

Command

Meaning

Details

cp copy copies or renames a file to the specified location
mv move moves or renames a file to the specified location
rm remove removes a file from a directory

 

Print Commands

Command

Meaning

Details

lpr prints file to specified printer lpr -P <printername> <filename>
lpq checks the print queue
reports your job number
lpq -P <printername>
lprm cancels a print job prm -P <printername> <jobnumber>