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
Which command will print your home directory on screen?
Why is awk called awk?
What is the use of sed command in unix?
Explain mount and unmount command.
What is command statement?
What are the dos commands?
Why is it called a shebang?
What does the command '$ls | wc –l > file1' do?
Describe the usage and functionality of the command rm –r * in unix?
Explain ‘system calls’ with respect to unix commands?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is unix command?
What is unix command line?
What does grep v do?
What is s and g in sed command?