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 sed awk grep?
Using unix command how to display no of records in oracle?
What is used to type command?
Enlist some filename manipulation commands in unix.
Which command is used to delete all files in the current directory and all its sub-directories?
How many unix commands are there?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
What is difference between grep and find command in unix?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
Describe the zip/unzip command using gzip.
Which command can you use to find the currently running process in unix server?
Differentiate cmp command from diff command.
What is the use of find command in unix?
Which command is used to restrict incoming messages?
How do I clear my terminal history?