Ramin Hossaini (blog)

28Jun/10

Linux: Tar and Zip

Compress:

  • z: Compress using GZIP
  • c: Create an archive (as opposed to the 'x' parameter to extract)
  • v: Verbose mode
  • f: Archive's filename
$ tar -zcvf filename.tar.gz /directory

Extract:

$ tar -zxvf filename.tar.gz

Related posts:

  1. Turning Archive-log mode on and off
  2. Simple MySQL backup-script
  3. Search through files for a string (Linux)
  4. Wubi – An easy way to Linux
  5. Backing up an Oracle database without RMAN
Filed under: General Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.

Bear
Private