Create
Learn
Share

Linux commands

rename
pavan2312's version from 2016-01-08 17:18

tar command options

Question Answer
Creating an uncompressed tar archivetar cvf
compressed gzip archive creationtar cvfz
compressed bzip2 archive creationtar cvfj
Creating a bzipped tar archive tar cvjf
Extracting (untar) an archivetar xvf
Extract a gzipped tar archivetar xvzf
Extracting a bzipped tar archivetar xvjf
View the tar archive file content without extractingtar tvf
gzipped tar archive content without extractingtar tvzf
View the *.tar.bz2 file content without extractingtar tvjf
To extract a specific file from a tar archivetar xvf
To extract a specific file from a gzipped tar archivetar xvfz
To extract a specific file from a bzipped tar archivetar xvfj
To extract a single directory from a gzipped tar archivetar xvfz
To extract a single directory from a gzipped tar archivetar xvfj
Extract group of files from rom a tar archive using regular expressiontar xvf
Adding a file or directory to an existing archive using option -rtar rvf
Verify files available in tar tar cvfW
estimates the tar file sizetar -cf -
estimates the tar file size of tar.gz archivetar -czf -
estimates the tar file size of tar.bz2 archivetar -cjf -
memorize