Unit 1_Unix Shell Commands
Unit 1_Unix Shell Commands
system services. Shell accepts human-readable commands from the user and converts
them into something which the kernel can understand. It is a command language
interpreter that executes commands read from input devices such as keyboards or from
files. The shell gets started when the user logs in or starts the terminal.
1). Displaying the file contents on the terminal:
cat: It is generally used to concatenate the files. It gives the output on the standard
output.
more: It is a filter for paging through text one screenful at a time.
mv : Used to move the files or directories. This command’s working is almost similar
to cp command but it deletes a copy of the file or directory from the source path.
rm : Used to remove files or directories.
grep with Regular Expressions: Used to search for text using specific regular
expressions in file.
sort : This command is used to sort the contents of files.