Unix Commands

Unix Commands

Unix is the operating system used, most notably, on the workstations of Sun Microsystems. If you're using this system, there are many commands that you can enter in the command line interpreter or Unix shell to perform certain tasks, some of them are listed below:

ls
show directory

mkdir
create a directory

rmdir
remove directory

rm
remove files

cd
change current directory

passwd
change your password

grep
search for a string in a file

chmod
change file permissions

cp
copy files

echo
echo argument

head
display first part of file

mv
move and rename files

rsh
remote shell

sort
sort file

tail
display last part of file

tar
create an archive, add or extract files

wc
count characters, words and lines

setenv
set an environment variable

pwd
find out what directory you are in

date
display date

ftp
connect to a remote machine to download or upload files

cat
create and display short files

logout
log off system

find
list all of the files within a directory and its subdirectories

lpr and lp
print a file on a printer connected to the computer network

cal
print a calendar for a specified month and/or year

ps
display information about programs that are currently running