Professional Documents
Culture Documents
What is Unix?
Need for Unix in today’s world?
Evolution of Unix.
Flavours of Unix.
SHELL
SHELL
UNIX OTHER
COMMANDS APPLICATIONS
HARDWARE
SHELL
SHELL
User User
File type
File permissions
File owner user ID and group ID
File size
Date/time of creation, last update and last
access
Number of hard links
A directory
A text file
A FIFO (pipe) special file
A block special file
A character special file
Source code for the C or FORTRAN languages
An executable (binary) file
An archive file in ar format & An archive file in
zip format
A filename
The I-node number of the file
Types of commands
Built-in commands :
These commands are part of the shell
External commands
These commands are separate programs
or files that are stored under a filesystem
Standard Output
This file is opened by shell to direct output.
Standard Error
This file is opened by shell for writing error
messages.
The vi Editor.
Modes of working:
Command Mode.
Insert Mode.
Escape Mode.
i, I , o, O, a, A ..
Command mode
Escape mode :q
:n
Permits editing of next file in the buffer.
:N
Permits editing of previous file in the buffer.
: rew
Permits editing of first file in buffer.
: args
Displays names of all files in the buffer.
tail
Display the last count lines of a file.
sort
Ordered arrangement.
sort [option] file
paste
Merging the corresponding lines of given files.
paste file1 file2….
comm
Compares 2 sorted files.
comm file1 file2
grep
Pattern searching in a file.
grep [option...] pattern [file...]
wc
Counts and displays the number of lines, words and
characters in a file.
wc [option...] filename...
file
File Type determination.
file FILES
Types of links:
Soft link
ln -s file1 file3
unlink command
Ex:-
# unlink linked_filename
4 2 1 4 2 1 4 2 1
rwxrwxrwx
nice
Execute commands with lower priority.
nice [option] command [arguments]