Unix Commands


In the table below we summarize the more frequently used commands on a Unix system. In this table, as in general, for most Unix commands, file, could be an actual file name, or a list of file names, or input/output could be redirected to or from the command.
Unix Commands. This is a short version of a command list taken from Ohio State Univ. Unix course
Command/Syntax What it will do
cat [options] file concatenate (list) a file
cd [directory] change directory
cp [options] file1 file2 copy file1 into file2; file2 shouldn't already exist. This command creates or overwrites file2.
emacs [options] file full-screen editor
lpq [options]

lpstat [options]

show the status of print jobs
lpr [options] file

lp [options] file

print to defined printer
lprm [options]

cancel [options]

remove a print job from the print queue
ls [options] [directory or file] list directory contents or file permissions
man [options] command show the manual (man) page for a command
mkdir [options] directory make a directory
more [options] file

less [options] file

pg [options] file

page through a text file
mv [options] file1 file2 move file1 into file2
pwd print working (current) directory
rm [options] file remove (delete) a file or directory (-r recursively deletes the directory and its contents) (-i prompts before removing files)
rmdir [options] directory remove a directory
tail [options] file display the last few lines (or parts) of a file