Source: https://www.howtogeek.com/248780/how-to-compress-and-extract-files-using-the-tar-command-on-linux/ Compress tar file tar -czvf name-of-archive.tar.gz /path/to/directory-or-file Extract tar file tar -xzvf archive.tar.gz