COMMON UNIX COMMANDS (QUICK REFERENCE)        

 

COMMAND

DESCRIPTION

COMMAND

DESCRIPTION

alias [alias- term

Allows the entering of shorter or easy-to-

kill [-9] pid

Terminates the process with the id-number

=['command-

remember names to execute longer or

 

pid-

String’]

hard-to-remember commands.

 

 

at [-m] time [date]

Schedules a command to run at a

less file

Displays the contents of the text file file a

 

particular time.

 

screenful at a time.

bc

A program to evaluate mathematical

In

Creates a link to a file so that it has more

 

equations.

 

than one name or resides in more than one

 

 

 

directory.

bg [job]

Continues a stopped job in the

logout

Terminates. the current UNIX session and

 

background.

 

log out of the system.

cal [month] [year]

Displays calendar

Is pattern

Lists the files and directories in a directory-

cat [filename]

Displays the contents of the file named by

man command

Displays the standard UNIX manual page

 

filename.

 

for the command you specify.

cd [directory]

Change to another directory. Entering cd

mkdir dir

creates a new directory named dir.

 

without the directory argument will move

 

 

 

you to your home directory.

 

 

chmod pemissions

Changes the access permission

more file

Displays the contents of the text file file a

path

associated with a file or directory

 

screenful at a time

chown usemame

Changes the ownership of the file or

mv name I name2

Moves and/or renames the file or directory,

path

directory, path,  to user usemame.

 

name I to name2.

cp file 1 file 2

Creates an identical copy of the file I, and

passwd

Changes your UNIX login password

 

names the - copy file2. Note that the

 

 

 

ownership of Me2 will be set to whoever

 

 

 

does the cp command.

 

 

date

Displays the current date and time.

ps

Displays a list of the processes currently

 

 

 

running on the machine that you are

 

 

 

logged into.

diff file I file 2

Compares the contents of two text files and

pwd

Displays the full path of your current

 

displays the differences. The lines

 

working directory.

 

preceded with < are from file l. The lines

 

 

 

preceded by > are from file2. Each section

 

 

 

of differences is separated by --.

 

 

du options

The du command summarizes disk usage.

rm file

Removes the file file permanently from the

 

du entered on the command line with no

 

filesystem. Note that deletion cannot be

 

options will return the size of all the

 

undone.

 

directories beneath the current working

 

 

 

directory

 

 

exit

Terminates the current UNIX shell.

rmdir dir

Deletes the empty subdirectory dir.

fg

Continues a stopped job by running it in

talk user

Allows you to communicate with another

 

the foreground

 

user using your terminal.

finger user

Displays information about user accounts.

tail Me

Lists the last few fines of file.

ftp

Connects to another computer to either get

teinet address

Logs into another machine specified by

 

a file(s) from the remote machine or to put

 

address.

 

a file(s) onto a remote machine.

 

 

grep pattem file

Searches one or more files, specified by

wc file

Counts the number of words or characters

 

fife, for the text string specified by pattern.

 

and lines in file.

head file

Displays the first few lines of a file

who

Displays a list of who is logged on to the

 

 

 

system and where they are logged on from

jobs

Lists the jobs that are running in either the

 

 

 

foreground or the background, and the jobs that are stopped.

 

 

 

 

 

 

 

Hosted by www.Geocities.ws

1