EvanHahn,

The tar command is famously hard to use.

To create a tarball, remember "Create A File":

tar -caf my_archive.tar.gz file1.txt file2.png

To extract a tarball, remember "eXtract A File":

tar -xaf my_archive.tar.gz

(This works great on Linux. On macOS and some other systems, the -a flag causes problems during extraction—use -xf instead.)

https://evanhahn.com/mnemonic-to-remember-tar-commands/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ngwrru68w68
  • kavyap
  • tester
  • cisconetworking
  • JUstTest
  • InstantRegret
  • khanakhh
  • cubers
  • everett
  • Durango
  • tacticalgear
  • Leos
  • modclub
  • normalnudes
  • megavids
  • anitta
  • provamag3
  • lostlight
  • All magazines