Process Oriented Commands
Process Oriented Commands
Process Oriented Commands
Bhat vijettha 1
Dd
This command copies files and coverts them in one
format to another.
General format is,
dd [options =values]
Where options can be,
If input filename
Of output filename
Conv file conversion specificatiton.
The value for this option may be
Lcase ,ucase,ascii and abcdic
Expand
This command converts all the tabs present in the
specified file into blank spaces and displays the
results on the screen.
Expand [-i] <filename>
Where the –i option converts only the intial tab into
blank spaces.
Nl
This command numbers all non blank lines in the
specified text file and displays the same on the
screen.
General format is,
nl <filename>
Tac
This command reverses a file so that last line
becomes the first line.
General format is,
Tac <filename>
Tail
This command displays the end of the specified file.
general format is,
Tail +n <filename>
+n is used to display the nth line till end of the file .
-n last n lines are displayed.
No option is used then last 10 lines are displayed.
Process oriented commands
A process is a job in execution.
Example:
$sort emp.doc&
$skill 120
This command terminate the process who has the PID
120.
$kill -9 130
$kill -9 0
This command kills the processes including the login
shell.
Nohup
Nohup <command>&
Batch