Professional Documents
Culture Documents
The Unix operating system was created more than 30 years ago by a
group of researchers at AT&T's Bell Laboratories. During the three
decades of constant development that have followed, Unix has
found a home in many places, from the ubiquitous mainframe to
home computers to the smallest of embedded devices. Here we will
learn some fundamental concepts of the basic Unix operating
system.
Unix Versions
login:root
Password:
Basic Unix Commands
man – provides access to the online UNIX manual
ex. man ls will return more information about the UNIX
command ls
pwd – returns the name of the present working directory
ls – will return a list of the contents of a directory
ex. ls -l will return the long list option of contents
mkdir – will make a new sub-directory in your pwd
ex. mkdir XYZ
rmdir – will remove a sub-directory in your pwd
ex. rmdir XYZ
cd – will change the working directory
ex. cd no argument – return to home directory
ex. cd .. return you up 1 level
ex. cd / will bring you to the root level
rm – removes file/s in pwd
ex. rm ch1 will remove file ch1 in pwd
ex. rm ch* will remove any file beginning with ch in pwd
ex. rm * will remove all files in pwd
cp – copies file/s from pwd to target destination
ex. cp ch1 ../../projects/chapter1 will copy file ch1 in
pwd
to directory projects and rename chapter1
mv – will move a file to a target directory
can be used to rename the file
cal – prints a calender
date – prints the week, date and time
cat – displays the contents of a text file
more - displays the contents of a text file one screen at a
time
who – list users currently signed onto network
who am i – will tell you who you are
clear – clears the screen
du –k – tells you your disk utilization
passwd – allows you to change your password
logout end your UNIX session
passwd change password by prompting for old
and new passwords
date display or set the date
finger display information about users
ps display information about processes
env display or change current environment
set C shell command to set shell variables
alias C shell command to define command
abbreviations
history C shell command to display recent
commands
Editing Tools
vi screen oriented (visual) display editor