Skip to content

Instantly share code, notes, and snippets.

View oisteink's full-sized avatar

Øistein Kjos oisteink

View GitHub Profile
@haskaalo
haskaalo / tarcheatsheet.md
Last active March 4, 2025 12:04
Tar usage / Tar Cheat Sheet

Tar Usage / Cheat Sheet

Compress a file or directory

e.g: tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

  • -c: Create an archive.
  • -z: Compress the archive with gzip.
  • -v: makes tar talk a lot. Verbose output shows you all the files being archived and much.
  • -f: Allows you to specify the filename of the archive.