Monday, January 16, 2012

How To create file Tar.gz from folder in one command line

0 komentar
sometime we need creat file tar.gz from our folder/directory only with one line commandline, so here just for you guys..

$ mkdir test
$ cd test
$ touch isi
$ tar -cvf - test/ | gzip - > test.tar.gz
a test// 0K
a test//isi 0K
$ ls -ltr test*
drwxr-xr-x 2 asyu kampret 512 Jan 16 21:18 test
-rw-r--r-- 1 asyu kampret 138 Jan 16 21:24 test.tar.gz

done
Read More..
 
footer