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
Describe the zip/unzip command using gzip.
What does pipe () return?
What is the use of egrep command in unix?
Why is awk called awk?
Why is grep called grep?
Which command is used to copy files?
What are the unix commands?
What is the command to find hidden files in the current directory?
What are some command words?
What is used to type command?
What is the comma to show the space allocation of files?
How to use grep command to list find the records of a file containing 10 different strings?
What is the use of the command 'ls -x chapter[1-5]' ?
Differentiate cmp command from diff command.
What is grep r?