Jul 16, 2012

0 Compressed files.Zip/unzip e.t.c



Extracting tar.gz archive :

sudo tar zxvf wordpress-x.x.x.tar.gz --directory=/var/www/
* You run this command from folder, where is located your archive.
* In example you see, it'll extract to /var/www directory. You can change it :)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Unzip

To use this you need a software unzip.
sudo apt-get install unzip

$ unzip {file}
Where {file} is your .zip archive
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Zip

sudo apt-get install zip

zip documents.zip file1 file2 file3 ...

Example : zip documents.zip cv.doc diploma.pdf letter.doc
* File documents.zip , will include 3 files (cv.doc/diploma.pdf/letter.doc)

0 comments :

Post a Comment

Comment: