# compress
tar czvf < archive_name >.tar.gz < path >
# extract
tar xzvf < archive_name >.tar.gz
tar xzvf < archive_name >.tar.gz -C /home/usera/tmp
# Compress
# -> filename.tar.gz, filename.tgz
username@computer:~$ tar -czvf filename.tgz /home/username/directory
# -> filename.tar.bz2, filename.tbz
username@computer:~$ tar -cvjSf filename.tbz /home/username/directory