2016년 2월 15일 월요일

Compressing as tar , tar.gz

1. Compressing as tar

tar -cvf fileName.tar folderName

2. Decompressing tar file

tar -xvf fileName.tar

3. Compressing as tar.gz

tar -zcvf fileName.tar.gz folderName

4. Decompressing tar.gz file

tar -zxvf fileName.tar.gz

5. Options for tar command

-c : compress
-p : save the file permission
-v : print the process when compressing or decompressing
-f : set the file name
-C : set the file path
-x : decompress
-z : compress or decompress by gzip

original source : http://nota.tistory.com/53

댓글 없음 :

댓글 쓰기