Compression Commands


compression

gzip
Zipping a file with gzip

gzip

gunzip
Unzip a file with gunzip

gunzip

bzip2
bzip2 compresses files using the Burrows-Wheeler block sorting text compression

bzip2

tar -xvf
Unzipping tar.gz and .tgz files

xvf

tar -cvf
Untar or decompressed a file(s) that is created using tar compressing

cvf

tar -zxvf
will extract the archive to the folder tar-archive-name

zxvf

tar -cf
tar files into file.tar

cf

tar -xf
untar into current directory

xf

tar -tf
show contents of archive

tf

Tar Flags
c – create archive
t –
table of contents
x –
extract
f –
specifies filename
z –
use zip/unzip
j –
bzip2 compression
k –
do not overwrite
T –
files from file
W –
ask for confirmation
v –
verbose

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s