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

How do I find previous commands in unix?

588


Which unix command lists files/folders in alphabetical order?

609


What is the unix command to confirm a remote host is alive or not?

569


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

681


What is grep r?

579






What is the size of time_t?

635


How do I use grep to find a file?

571


Is command prompt unix?

570


Which command is used to kill the last background job?

767


What is command substitution?

615


Which command should you use to find the remaining disk space in unix server?

695


What's a command word?

579


What is the search command in unix?

588


Name the various commands that are used for the user information in unix.

532


How does pipe () work?

585