Professional Documents
Culture Documents
Intermediate Level
Recap – Day 1
Introduction to Unix
Unix System Architecture
Basic Unix Commands
File and directory related commands
Shell meta characters
Standard files
Redirection and Pipe
2
Session Plan – Day 2
Compression Utilities
3
Text Processing Commands
Text Processing Commands (1/7)
5
Text Processing Commands (2/7)
Translate characters
$ cmd_output | tr [option]
tr Used on output of some other
command src_charset tar_charset
6
Text Processing Commands (3/7)
7
Text Processing Commands (4/7)
8
Text Processing Commands (5/7)
Variations Syntax
Ignores case while searching $ grep –i pattern file_name
Prints only the count of the number of lines,
$ grep –c pattern file_name
having given pattern
Prints the lines which are not containing
$ grep –v pattern file_name
given pattern
9
Anchor Characters for grep Command
10
Text Processing Commands (6/7)
Variations Syntax
Removes adjacent repeated lines and prints
$ uniq file_name
the output
Prints only uniq lines $ uniq –u file_name
Prints only duplicate lines $ uniq –d file_name
11
Text Processing Commands (7/7)
12
Self Study: Text Processing
Commands Demo
13
Can you answer these questions?
Differentiate between
cat file1 file2 file3 & paste file1 file2 file3
14
Process and Memory related
Commands
Process related Commands
16
Process related Commands (1/2)
17
Process related Commands (2/2)
18
Memory related Commands
df command du command
It will display the information about the
It will display the block used by all the
blocks of different file systems installed
directories and sub-directories available
on our system.
under the present working directory.
OR
OR
It will give the information about in
It will display the block used by the
which particular file system the
specified file or directory.
specified file or directory is available.
19
Compression Utilities
Compression Utilities
21
Self Study: Compression Utilities
Demo
22
Can you answer these questions?
23
Summary
24
Thank You
25