Common Unix Commands


"acroread file" - read pdf file using adobe acrobat reader

"cd" - change directory to home directory

"cd dir" - change directory to new directory, dir

"chmod 644 file" - make file readable

"chmod 755 dir" - make dir (directory) readable

"chmod 711 script" - make script readable (editable) by you, and executable by everyone.

"cp file1 file2" - copy file1 onto file2 (overwriting file2 if it exists)

"date" - show current time and date

"file f" - tell what file type "f" is

"ghostview file" - open up postscript file using ghostview

"ls" - list of all files in current directory

"ls -l" - list of all files in current directory (and show permissions)

"mkdir dir" - make new subdirectory dir, in current directory

"mpeg_play mp" - play an mpeg-1 file

"mv file1 file2" - move file1 to file2 (rename)

"mv file dir" - move file into directory

"rm file" - delete/remove file

"rmdir dir - remove directory (must be empty)

"telnet machine" - login to a new machine

"xanim file" - open file using xanim (animation viewer). This supports quicktime and other formats.

"xedit file" - use xedit to edit a file.

Other editors are asedit, emacs, vi, pico, and nedit. The latter, nedit, is perhaps the most WYSIWYG of them all... There is a command, edit, but I would not recommend it!

"xfig" - simple X tool for creating line figures

"xpaint" - simple X painting tool

"xv file" - open file with the xv graphics editor


Common Unix Utilities

"apropos command" Prints out a list of commands which mayhave something to do with "command". For example, "apropos file" prints out a long list of file-related commands. "apropos edit" prints out edit related commands.

"cal month year" Prings out the calendar for "month" of "year", e.g. "cal 1998" will print out a nice calendar for 1998. "cal 10 1998" will print out October 1998 calendar. "cal 98" will print out the calendar for 98 A.D.

"date" Prints out the date, in the form: Day Month Date Hour:Minutes:Seconds TimeZone Year

"diff file1 file2" Prints out the differences between file1 and file2 - useful for ascii files.

"finger user" or "finger user@machine" Find out information about "user" on local system, or "user@machine".

"man command" Prints out the manual page for "command".

"paste file1 file2" Paste two files together, line by line, side by side,

"ps -aex" Print out everything that is going on in the system.

"spell" Unix spell checker. Run as "spell < file" or "spell file". Output is to terminal, so you can redirect to a file by "spell file > spell.output" or "spell < file > spell.output".

"uptime" Print out how long the system has been up, and the load on the system. "who" Print out who is on the system