Tuesday 10 February 2009

How to use tar and gunzip

To create a "tar.gz" file:
  • tar -czvf target source
The switches are:
  • -c Create a file
  • -z Compress the file
  • -v Display what's going on (optional)
  • -f Use the next token as the filename
To uncompress a "tar.gz" file:
  • gunzip target
  • tar -xvf target
The switches are:
  • -x Uncompress the file
  • -v Display what's going on (optional)
  • -f Use the next token as the filename
Thanks go to John Shipman

No comments:

Post a Comment