CHAPTER 1 - ABOUT UNIX
CHAPTER 2 -LOGGING IN AND OUT
CHAPTER 3 - THE UNIX FILESTORE
CHAPTER 4 - UNIX COMMANDS
CHAPTER 5 - DOING MORE
CHAPTER 6 - FILE PERMISSIONS
CHAPTER 7 - STANDARD INPUT AND OUTPUT
CHAPTER 8 - PROCESSING
CHAPTER 9 - MORE ON THE SHELL
CHAPTER 10 - SHELL PROGRAMMING
CHAPTER 11 – FTP
CHAPTER 12 – CRONTAB
Linux Commands:
ls -a List of files and directories
mkdir make a directory
cddir change to named directory
cd change to home directory
cd .. change to parent directory
pwd present working directory
w show who is logged on and what they are doing
cp file1 file2 -- copy file1 and call it file2
mv file1 file2-- move or rename file1 to file2
rm file remove a file
rmdir remove a directory
cat file display a file
less file display a file a page at a time
head file display the first few lines of a file
cat> filename -- create a file
And if we want to add more text
gedit filename
tail file display the last few lines of the files
ls list* list all files in the current directory starting with list
man read the online manual page for a command
grep it searches files for specified word or patterns
eg: grep word filename
whatis cat gives a online description of the command
top display LINUX tasks
touch change file timestamps
finger user information lookup program
info gives info
scp Secure copy
who list of user currently logged in
which shows full path of (shell) commands
diff file1 file2 -- this command compares the content of 2 files and display the file
printenv -- to see a list of your environment
chmod(changing a file mode)
u- user, g-group, o-other, a -all
r-read 4, w-write 2, x-execute 1
user group other
rwx rwx rwx
421 4 1 21
7 5 3
chmod 753 filename
Network commands
ifconfig config a network interface
telnet user interface to the telnet protocol
ftp install file tranfer protocol
whoami Display username
uname Display O.S name
sort To sort the contents of a file
date To display the system date
%D display the date in MM/DD/YY
%d display the day of the Month
%m display the month
%y display the year
date "+%m" output is 06
%a displays abbreviated weekdays
%A weekday
%b month
%B month
eg: date "+ current date:%A"
eg: $date"+%a"
eg: $ cal 10 2006
echo display a msg given on the monitor
eg: $echo welcome
id-- display the no. of userids and groupids
options -u the no. of users and -g the no. of groups
eg: $id ,$id -u and $id -g