p:: CLI

Creating a compressed tar file

tar -cvzf filename.tar.gz /path/to/dir

For the above, you can read -cvzf as: (c)reate a g(z)ipped tar (f)ile in (v)erbose mode, called filename.tar.gz, using the content from /path/to/dir.