Skip to content

Instantly share code, notes, and snippets.

@kevinslin
Created August 24, 2020 16:28
Show Gist options
  • Save kevinslin/ab4cc93363e3d7abf634f53543f23575 to your computer and use it in GitHub Desktop.
Save kevinslin/ab4cc93363e3d7abf634f53543f23575 to your computer and use it in GitHub Desktop.

Synopsis

tar [bundle-flags <args] [<file> | <pattern> ...]

Options

  • -c: create new archive
  • -d: find difference bwt files in the archive
  • -v: verbose
  • -f: specify filename
  • -x: extract file
  • -j: Open up a bzip2 file
  • -z: file archive through gzip
  • -C: change directory before adding

Cook

Create tgz

tar -czvf archive.tgz source_file

Open a tar

tar -xvf yourfile.tar

Open a bz2 file

tar -vxjf mm_binary.tar.bz2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment