Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Extract linux tar gz (Gzip) archive ,and note the The f flag must come at the end or you will get an error.

The f flag must come at the end or you will get an error.
Code Block
languagebash
tar -xzvf mystuff.tgz
Note

In some scenarios, you are moving between systems and want to extract maintaining permissions of users external to yourself. In this scenario you must ensure you UIDs are the same across systems,

Code Block
languagebash
sudo tar -xzvf mystuff.tgz

....

We use -x to extract the files form the tar archive
-x, –extract, –get extract files from an archive

...