Tar Cheat Sheet

Compress a file or directory

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

Extract an archive

tar -xvzf name-of-archive.tar.gz

Updated on
Tags: , ,