Answers for "tar options"


linux tar command

Create a new tar archive.
$ tar cvf archive_name.tar dirname/

Extract from an existing tar archive.
$ tar xvf archive_name.tar

View an existing tar archive.
$ tar tvf archive_name.tar
Posted by: Guest on September-29-2020

tar cmd

# tar -cvf tecmint-14-09-12.tar /home/tecmint/

Posted by: Guest on May-07-2020

tar options

tar [options] [archive-file] [file or directory to be archived]

-c : Creates Archive 
-x : Extract the archive 
-f : creates archive with given filename 
-t : displays or lists files in archived file 
-u : archives and adds to an existing archive file 
-v : Displays Verbose Information 
-A : Concatenates the archive files 
-z : zip, tells tar command that creates tar file using gzip 
-j : filter archive tar file using tbzip 
-W : Verify a archive file 
-r : update or add file or directory in already existed .tar file 

For more info read here
Posted by: Guest on July-19-2021

Browse Popular Code Answers by Language