Compression Related Commands

tar cf file.tar files – create a tar named file.tar containing files

tar xf file.tar – extract the files from file.tar

tar czf file.tar.gz files – create a tar with Gzip compression

tar xzf file.tar.gz – extract a tar using Gzip

tar cjf file.tar.bz2 – create a tar with Bzip2 compression

tar xjf file.tar.bz2 – extract a tar using Bzip2

gzip file – compresses file and renames it to file.gz

gzip -d file.gz – decompresses file.gz back to file

Comments

Popular posts from this blog

Inserting and Moving elements inside Ruby Array

Difference between Validations, Callbacks and Observers