In: Computer Science
How this command used for and provide examples for each one.
Commands:
1-file
2-find
3-pwd
4-ln
5-stat
6- cmp, comm, and diff
7-md5sum
8-du
9-gzip
10-gunzip
11-bzip2, and bunzip
12-cpio
13-tar
14-wc
15-vi editor
I have covered all the commands below with example and
explanation of command.
1. file
It determines what is the type of the file is for example
2. find
This command is useful for finding the file amoung the
hierarchy.
3. pwd
This command is used to know the current working directory.
4. ln
This command is used create the link between the files.
5. stat
stat command provides the details about the files like file ,size,
access, blocks, etc.
6. cmp, comm and diff
cmp is compare , comm is common , diff is diffrance between two
files.
7.md5sum
The md5sum verify data integrity using MD5
example
command: md5sum /home/krunal/test/test.cpp >
checkmd5.md5
it will store MD5 checksum in test.cpp
command: md5sum -c checkmd5.md5 output: /home/krunal/test/test.cpp: OK if you have changed the file then it will give output output: /home/krunal/test/test.cpp: FAILED 8.du du command is used for knowing the file space usage in disk 9.gzip It compress the file and create the file with extansion .gz and have the header of GNU zip header. 10. gunzip It expands the compressed file it accept the extensip of file like .gz , -z, .Z, tar or .tgz. 11. bzip2, and bunzip bzip is used to compress the files. It usage less storage but uses higher memory. bunzip is used for de-compress file. we can de-compress using the bzip also by providing the flag -d 12. cpio cpio stands for copy in, copy out this is used to copy file from and into the archived files 13. tar tar command is used to create the archive files and extract the archive files. 14. wc it is used to count the word in file 15. vi editor its editor where we can edit the files vi editor looks like: