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
댓글 없음 :
댓글 쓰기