Linux by Aravind
Linux by Aravind
Linux by Aravind
Hardware ===kernel=== OS
OS ===Shell=== User
• At&T licensed the source code widely allowing many companies to modify
and produce UNIX like OS.
• AIX from IBM
• Solaris from SUN
• HP/UX from HP
Linux Kernel combined with GNU applications formed free UNIX like OS
Red hat Linux has 3 types of version of Linux for different level of users
• RH AS Advanced Server
• RH ES Entry Level Server
• RH WS Work Station
• Hardware Requirements:
• RHEL AS for very large servers - more than 2 cpu , more than 8 gb ram
• RHEL ES servers with limited requirements- upto 2 cpu & 8gb ram
• RHEL WS-desktop, 1 cpu , 256 MB RAM
Linux consoles and prompt
• Linux has text and GUI based consoles for multi logging and multi
tasking.
• Running commands
• --help
• Whatis
• Man
• Info
• /usr/share/doc
• Insert mode
• a appends after the cursor
• A appends to the end of line
• i insert before the cursor
• o opens a line below
• O opens a line above
• Exit mode
• w write
• q quit
• wq write and quit
Vi Editor continued
Command mode
Copy/yank lines yy
Paste lines p
Delete lines dd
Undo the changes u
Redo ctrl+r
File Repositioning
G goes to the last line in a file
nG goes to the nth line in a file
• head
• Displays first few lines (default: 10 lines) of text in a file
#head output.txt
• Use –n parameter to change number of lines displayed.
#head –n 20 output.txt
• tail
• Displays last few lines (default: 10 lines) of text in a file
#tail output.txt
• Use –n parameter to change number of lines displayed.
#tail –n 20 output.txt
• Where -f defines the filed and -d defines the delimiter used in the
file.
• -c cuts by characters
• $ cut –c2-5 /result.txt
Introduction to string processing continued