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 the general format of unix command syntax?
Which command is used to find whether the system is 32 bit or 64 bit?
Give the command for finding the current date.
What does the command ' $who | sort –logfile > newfile' do?
What is updatedb?
Which unix command lists files/folders in alphabetical order?
How do I use grep to find a file?
What does this command do,"$more readme.txt“?
What is the use of finger command?
Is grep faster than awk?
Why is it called a shebang?
Name the unix command to find how many days the server has been up.
What is the use of sed command in unix?
Why is awk called awk?
What is merge command in unix?