Unix Commands


Environment Control
cd d Change current directory to d
mkdir d Create the directory d
rmdir d Remove the directory d
passwd Change user's password
login Login into UNIX
logout Logout from UNIX

File Manipulation
vi f Edit file f using the visual editor vi
pico f Edit file f using the visual editor pico
cat f Display file f on the terminal
cat f g > h Concatenate file f and g into file h
more f Display file f on the terminal
lpr -Pp f Print file f on printer p
chmod Change the protection mode of a file
mv f g Moves file f to file g
mv f d Move file f into directory d
cp f g Copy file f to file g
rm f Remove file f

Environment Status
ls List files in current directory
ls -1 Long listing of file (including mode, date, etc.)
ls -a List all files (including hidden files beginning with '.' )
ls d List files in directory d
man c Manual help for command c
man -k w List all command related to keyword w
who List users
finger n Diplay user information on user n
pwd Display current working directory
date Display date

Process Control
ctrl-Z Suspend current process
bg Put suspended process into background
c& Run conunand c in the background
kill -9 n Kill process with id number n
kill -9 -1 Kill all processes for user


Back