Unix Command Summary
type your UCSC account name, then press the RETURN key.
type your password (it does not print, so type carefully), then press the RETURN key.
logs you off the system (logout is one word). You can also use exit.
clears your terminal screen.
shows the date and time.
cal 3 1998
shows the calendar for March 1998. cal 3 92 shows you March in 92 A.D.; try also cal 9 1752 !
retrieves mail which has been sent to you, and shows it one message at a time, prompting with & for disposition. Type a ? while inside mail to get a list of mail commands. Most people should use pine instead (see below). mail does not work in IC Solaris
changes your password. You are prompted once for your current password and twice for your new one. Printing is turned off while the passwords are typed. New passwords may be as long as eight characters.
changes your password in IC Solaris systems. You are prompted once for your current password and twice for your new one. Printing is turned off while the passwords are typed. New passwords may be as long as eight characters.
another email program. Easier to use than mail because it is menu driven.
lists users who are currently logged in. If you type users, you get only their login names.
How much filesystem storage quota you have used.
prints a writeup from the UNIX Programmer's Manual for the specified command.
man -k topic(s)
locates commands by keyword lookup. For example, try man -k editor.
on Athena machines (e.g. si, am, ese, angus, and others) invokes lynx, a web text browser beginning at the ITS HelpDesk's home page. Use the on-screen menus to navigate.
help on IC Solaris Systems
lists the files in the current directory. Type ls -l for a long list showing ownership, file size, and date modified.
shows the contents of the named file(s) on the terminal.
displays the file(s), one screenful at a time. Push the space bar for the next screenful, the RETURN key for one more line, or q to
cp file1 file2
copies file1 onto file2. There are now two separate copies of the file.
cp file(s) directory
makes a copy of the named file(s) in the given directory and gives it the same file name(s) as the original file(s).
removes the named file(s).
mv old newname
changes the name of a file from old to newname.
mv file(s) directory
moves the file(s) to the specified directory. The original file name(s) remain(s) the same.
gives the pathname of the current directory (print working directory).
makes a new directory with the given name. Some people capitalizes directory names so they stand out among the file names.
changes to a different working directory.
gets back to your home directory.
removes the indicated directory. The directory must be empty.
shows how much of your file storage quota you have used
pr -Pprintername filename(s)
prints on named printer. Check with the Help Desk for information on site codes, locations, and costs.
spell filename | more
lists possible spelling errors.
correct spelling errors. Type a : to get a list of commands.
looks up all words with the same starting letters. For example, try look dict.
looks for the same two words in a row. A common common typo.
grep word filename
locates all instances of word in file filename.
provides word, line, and character count of file.
prints the definition of the word.
lists your most recent commands. To repeat command on line 24, type !24.
repeats the last command you typed.
repeats the last command that started with c.
repeats the last command that started with cl.
repeats command 25 from history list.
Most of the special characters cause trouble in file names and should be avoided. File names can have a period or a dash within the file-name but should not start with a .period or a -dash. For further information on how special characters are interpreted, see the UNIX Programmer's Manual, under csh(1).
To interrupt and stop execution of a command, press BREAK or CONTROL-c . Type a CONTROL-s (stop) to stall the output to your terminal screen, and type a CONTROL-q (quick) to restart it. Type CONTROL-h to erase the previous character and CONTROL-w to erase the previous word. Type CONTROL-u to throw away the current line.
Need more help?
If you need more personal help, please contact the ITS Support Center.