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
Monday, January 16, 2012
Subscribe to:
Post Comments (Atom)
0 komentar:
Post a Comment