SSC Home Page
List of SSC Staff Members
Information about E-Mail
Software available on SSCnet
The SSCnet Labs
What is SSC?

Software

Basic UNIX Commands

(Here's a shorter list with 10 basic UNIX commands)


alljobs
Lists all your jobs that are currently running.
bp
A special SSC command that sends a file to the line printer in Bunche Hall.
Example: bp filename
cancel
Terminates a command for a printer request.
cat
Displays a file or files.
Example: cat filename. If the output is scrolling across your screen too fast, use the command more instead of cat to view one screenful at a time.
cd
Changes directory.
Example: cd /u/econ/smith. When cd is used by itself, it returns you to your home directory.
cd .
Takes you to the directory you're currently in.
cd ..
Takes you back up one directory.
chmod
Changes the mode of a file. The mode of a file specifies its permissions and other attributes. Here's one example using chmod which gives everyone permission to read a given file.
Example: chmod 444 filename.
compress
Compresses files which can be later uncompressed using the uncompress command. Compressing your large datasets is useful when you're running out of disk space.
Example: compress filename
cp
Copies one file to another file.
Example: copy filename1 filename 2
(ctrl)-z
Hold down "Ctrl" key and "z" at the same time. Stops a job and puts it in the background.
date
Displays the date and time.
df -k
Shows disk space in Kbytes available on the system.
di
A special SSC command that shows your disk usage.
du
Summarizes disk usage by reporting the number of 512-byte blocks contained in all files and (recursively) directories.
find
Finds files and directory names.
Example: find -ls will list all files.
Example: find -mtime 1 will list files modified that day.
hp
A special SSC command whichs sends a file to the line printer in Haines Hall.
lm
A special SSC command similar to "ls" (see below) but lm gives more info, and shows you information one screen at a time ("more").
lprm
Terminates a printer request.
lpstat
Reports the status of printer and jobs.
ls
Lists files and directories. By itself, ls shows a list of what's in the current directory.
ls -al
Lists files and directories in alphabetical order.
man
Shows help on a specific command.
Example: man commandname
mime
Encodes or decodes MIME64 files.
Example: mime filename
more
Views a file, pausing every screenful.
Example: more filename
mkdir
Creates a directory.
Example: mkdir directoryname
mv
Renames a file.
Example: mv filename newfilename
|
This symbol is called a "pipe". It's used when you want to output from the command on the left of the pipe to the command on the right of the pipe.
Example: ls | more lists (ls) the current file or directory, one screen at a time (more).
passwd
Changes your password. You'll be asked to enter your old password.
ps
Reports system processes.
public
Makes files publically accessible. Example: public filename
pwd
Stands for "present working directory". Shows the path of the directory that you're currently in.
rm
Removes a file or a group of files.
Example: rm filename1 filename2
rmdir
Removes directory listings.
Example: rm directoryname1 directoryname2
stty erase (& hit backspace key)
Allows use of backspace key, because sometimes when telneting you may lose the ability to use the backspace key. By the way, stty stands for "set terminal options".
tail
Shows the last few lines of a file. The following example gives you the last 30 lines of a file. Example: tail -30 filename
uncompress
Expands one or more files, created with compress, to their original form.
Example: uncompress filename
uudecode
Decodes files encoded in ASCII text format.
Example: uudecode filename
uuencode
Encodes file into ASCII text format in order to send through e-mail.
Example: uuencode filename
unzip
Reads files with the .zip extension.
Example: unzip filename.zip
vi
Gives you access to the "vi" text editor, the only text editor that comes with every flavor of UNIX. All others are public domain and can be easily ported, including pico, joe, ee (easy editor), and emacs, a very popular and powerful editor but with a steep learning curve. Here's the Barebones of Using VI.
who
Shows who is logged onto the local system.
zip
Puts files into the .zip format.
Example: zip filename


For more info, visit the Official UNIX Home Page.


Go to Social Sciences Computing, Social Sciences Division or UCLA home pages.

Last update July 22, 1996, by webmaster@www.sscnet.ucla.edu