Linux常用命令: 壓縮解壓

放心~被指到的人一定能學(xué)會的~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~?
tar
歸檔應(yīng)用
一般使用的時(shí)候結(jié)合gzip和bzip的壓縮使用
zip
打包壓縮zip文件
unip
解壓zip壓縮包
?
1. tar
Archiving utility.
歸檔應(yīng)用
Often combined with a compression method, such as gzip or bzip.
一般使用的時(shí)候結(jié)合gzip和bzip的壓縮使用
??Create a gzipped archive(創(chuàng)建一個(gè)gzip壓縮包):
??Create a gzipped archive from a directory using relative paths(壓縮指定目錄內(nèi)容):
??Extract a (compressed) archive into the current directory(解壓):
??Extract an archive into a target directory(指定目錄解壓):
??Create a compressed archive, using archive suffix to determine the compression program(創(chuàng)建壓縮文件通過后綴xz決定壓縮方法):
??List the contents of a tar file(顯示包內(nèi)容):
??Extract files matching a pattern(部分提取匹配文件):
2. zip/unzip
zip
Package and compress (archive) files into zip file.
打包壓縮zip文件
??E[x]clude unwanted files from being added to the compressed archive(打包壓縮式去除不需要文件):
zip -r {{compressed.zip}} {{path/to/dir}} -x {{path/to/exclude}}
??Package and compress multiple directories and files(打包壓縮多個(gè)目錄文件):
??Create an encrypted archive (user will be prompted for a password)(打包壓縮加密包):
??Add files to an existing zip file(向zip包中添加文件):
??Delete files from an existing zip file(從zip包中刪除文件):
??Archive a directory and its contents to a multi-part [s]plit zip file (e.g. 3GB parts)(按照大小分割壓縮包):
unip
Extract compressed files in a ZIP archive.
解壓zip壓縮包
??Extract zip file(s) (for multiple files, separate file paths by spaces)(當(dāng)前目錄解壓):
??Extract zip files(s) to given path(指定目錄解壓):
??List the contents of a zip file without extracting(查看壓縮包內(nèi)容):
??Extract a zip file created in windows, containing files with non-ascii (chinese) filenames(解壓中文名壓縮包,中文不亂碼):
?

自學(xué)筆記~
如果有錯~
期待大佬指出~
感謝幫助提升~?