Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Last active November 4, 2019 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpnwall-services/ced367cf1ca63b145d3b3260512f3269 to your computer and use it in GitHub Desktop.
Save vpnwall-services/ced367cf1ca63b145d3b3260512f3269 to your computer and use it in GitHub Desktop.
[TAR 101] tar 101 #bash #linux #tar #101

TAR 101

  • Create an archive but exclude a folder tar cvzf myarchive.tar.gz --exclude=exclude/relative/path to_archive_folder/

  • Unarchive .gz gunzip -d archive.gz

  • Unarchive tar.gz tar xvzf archive.tar.gz

  • Unarchive tar.bz2 tar xvjf archive.tar.bz2

  • Crypt archive tar cvzf myarchive.tar.gz myfolder/ && gpg -c myarchive.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment