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 sed awk grep?

602


Using unix command how to display no of records in oracle?

604


What is used to type command?

539


Enlist some filename manipulation commands in unix.

549


Which command is used to delete all files in the current directory and all its sub-directories?

660






How many unix commands are there?

625


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

795


What is difference between grep and find command in unix?

577


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

638


Describe the zip/unzip command using gzip.

608


Which command can you use to find the currently running process in unix server?

584


Differentiate cmp command from diff command.

586


What is the use of find command in unix?

577


Which command is used to restrict incoming messages?

592


How do I clear my terminal history?

581