how to use gz

How to zip uncompressed files:
1. go into the folder which you want to compress
2. tar cvf filename.tar *
3. compress filename.tar //you will get filename.tar.Z.
//step3 also can be like this: gzip filename.tar,you
//will get filename.tar.gz

How to Upzip compressed files:
1. copy the filename.tar.gz file somewhere you can create files and directories
2. gunzip filename.tar.gz
3. tar -xvf filename

//well to compress step2 and step3 into one step:
//tar zxvf filename.tar.gz
//If you want to unzip filename.tar.Z,
//step2 should be like this: uncompress filename.tar.Z

this should be enough to solve your yesterday's problem

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章