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
How many unix commands are there?
What does this command do? Cat food 1 > kitty
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Differentiate cat command from more command.
Is it inbetween or in between?
Write a command to kill the last background job?
How do I use grep to search for a file?
What are the dos commands?
What is sed awk grep?
What's a command word?
What is the pipe command?
Explain command to view process running?
What is the significance of the 'tee' command?
What does the command ' $who | sort –logfile > newfile' do?
hw will u use awk in replacing cahrs and files