Commonly Used UNIX Commands


For syntax and a more complete description, use the man command (e.g. man ssh).

Removes an empty directory. Displays the complete filename of the current directory.
cd Changes the current directory to the one specified, or if you do not specify a directory, to your home directory.
chmod Sets access permissions for a specified file or directory.
cmp Compares two files.
cp Copies one or more files to the specified destinations.
emacs Starts the emacs editor.
exit Terminates a shell. If you are running only one shell, the command logs you out.
gnutar Creates, adds files to, or extracts files from an archive file in tar format.
grep Searches the named input files for lines containing a match to the given pattern. By default, grep prints the matching lines.
kill Terminates or reinitializes a process.
ls Lists information about files in a directory. If you do not specify a filename, it lists the files in the current directory.
man Displays online documentation of operation system commands.
mkdir Creates a directory.
mv Moves or renames files and directories.
rm Removes the specified file. The -r option allows you to remove a directory and all its files.
rmdir
sftp Transfers files with secure ftp.
ssh Securely connects and logs you into a specified remote host.
passwd Changes your password.
pico Starts the pico editor.
pine Starts the pine program for sending and receiving e-mail.
ps Displays a list of all the active processes submitted from the current terminal.
pwd
vi Starts the vi editor.
wc Displays the number of lines, words, and bytes contained in each input file.

 


If you have any questions regarding this topic e-mail to support@stat.ucla.edu

Date Created: 2001-08-22 13:40:10 Date Last Modified: 2001-08-22 18:39:32


UCLA Department of Statistics
Last updated: 13-Jul-2009
Access count is: 41264, since 01-Oct-2003
Maintained by: Web Staff [webstaff@stat.ucla.edu]