what is tar command and what are the different types of tar
commands?
Answer Posted / pitambar mishra
tar command is used for create archiving so that data transfer
will de easier.
1. Create a tar archive :
tar -cvf tarfilename.tar path_of_file
2. Extract a tar archive :
tar -xvf tarfilename.tar
3. See the contents of a tar archive :
tar -tvf tarfilename.tar
4. Add a new file to an existing tar archive :
tar -rf tarfilename.tar newfile
5. Remove a file from an existing tar archive :
tar --delete -file=tarfilename.tar file_to_remove
6. Tar and zip at same time :
tar -cvzf
7. Tar and unzip at same time :
tar -xvzf
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Are you in or at the office?
What difference between cmp and diff commands?
What are reported commands?
How do I open a port?
What does awk stand for?
Which unix command lists files/folders in alphabetical order?
What command is used to check the current users?
Is command prompt unix?
What is ctrl d?
What is ‘ps’ command for?
What are filter commands in unix?
What is unix command line?
What is the use of the tee command?
Explain ‘system calls’ with respect to unix commands?
Does cp command overwrite files?