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


Please Help Members By Posting Answers For Below Questions

What is the general format of unix command syntax?

698


Which command is used to find whether the system is 32 bit or 64 bit?

633


Give the command for finding the current date.

584


What does the command ' $who | sort –logfile > newfile' do?

774


What is updatedb?

590






Which unix command lists files/folders in alphabetical order?

622


How do I use grep to find a file?

583


What does this command do,"$more readme.txt“?

693


What is the use of finger command?

603


Is grep faster than awk?

569


Why is it called a shebang?

574


Name the unix command to find how many days the server has been up.

612


What is the use of sed command in unix?

604


Why is awk called awk?

581


What is merge command in unix?

946