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
What is grep short for?
What is grep r?
What is the comma to display different lines that are found when compare two files?
What is merge command in unix?
What happens when we execute a unix command?
What is the significance of the 'tee' command?
How does pipe () work?
What is ‘ps’ command for?
What is in grep command?
Explain the steps that a shell follows while processing a command.
What does the command ' $who | sort –logfile > newfile' do?
What are bash commands?
What are the commands in UNIX to list the files in a Directory?
What is the use of tee command?
What is the use of sed command in unix?