Answers for "linux tar command"


how to tar linux

tar -zcvf file.tar.gz /path/to/dir/
Posted by: Guest on March-07-2020

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

how to make a tarball in linux

tar -cvzf name.tar /path/to/directory
Posted by: Guest on February-06-2020

tar command

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

#-c: Create an archive.
#-z: Compress the archive with gzip.
#-v: Display progress in the terminal while creating the archive, also known as “verbose” mode. The v is always optional in these commands, but it’s helpful.
#-f: Allows you to specify the filename of the archive.
#-x : Extract the archive 
#-t : displays or lists files in archived file 
#-u : archives and adds to an existing archive file 
#-A : Concatenates the archive files  
#-j : filter archive tar file using tbzip 
#-W : Verify a archive file 
#-r : update or add file or directory in already existed .tar file
Posted by: Guest on October-23-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language