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
How do I find previous commands in unix?
Which unix command lists files/folders in alphabetical order?
What is the unix command to confirm a remote host is alive or not?
What does this command do,"$more readme.txt“?
What is grep r?
What is the size of time_t?
How do I use grep to find a file?
Is command prompt unix?
Which command is used to kill the last background job?
What is command substitution?
Which command should you use to find the remaining disk space in unix server?
What's a command word?
What is the search command in unix?
Name the various commands that are used for the user information in unix.
How does pipe () work?