We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tar.gz
tar zvcf data.tar.gz data/
tar zvxf data.tar.gz
tar tvf data.trar.gz
tar.bz2
tar jvcf data.tar.bz2 data/
tar jvxf data.tar.bz2
tar jtvf data.trar.bz2
tar zvxf data.targ.gz -C output_dir
output_dir
tar.xz
tar -xf data.tar.xz
zip -q -r data.zip data/
unzip data.zip
unzip data.zip -d tmp
jar xvf data.zip
-a 将文件转成ASCII模式 -F 尝试修复损坏的压缩文件 -h 显示帮助界面 -m 将文件压缩之后,删除源文件 -n 特定字符串 不压缩具有特定字尾字符串的文件 -o 将压缩文件内的所有文件的最新变动时间设为压缩时候的时间 -q 安静模式,在压缩的时候不显示指令的执行过程 -r 将指定的目录下的所有子目录以及文件一起处理 -S 包含系统文件和隐含文件(S是大写)
-n 解压缩时不要覆盖原有的文件; -o 不必先询问用户,unzip执行后覆盖原有的文件; -P [密码] 使用zip的密码选项; -q 执行时不显示任何信息; -d [目录] 指定文件解压缩后所要存储的目录;
7z a data.7z data/
7z x data.7z
rar a data.rar data/
unrar x test.rar /path/to/extract
The text was updated successfully, but these errors were encountered:
No branches or pull requests
压缩解压
Tools
tar
tar.gz
tar zvcf data.tar.gz data/
tar.gz
tar zvxf data.tar.gz
tar.gz
tar tvf data.trar.gz
tar.bz2
tar jvcf data.tar.bz2 data/
tar.bz2
tar jvxf data.tar.bz2
tar.bz2
tar jtvf data.trar.bz2
tar zvxf data.targ.gz -C output_dir
>
output_dir
需要手动创建tar.xz
tar -xf data.tar.xz
zip/unzip
zip -q -r data.zip data/
unzip data.zip
unzip data.zip -d tmp
7z
7z a data.7z data/
7z x data.7z
rar/unrar
rar a data.rar data/
unrar x test.rar /path/to/extract
The text was updated successfully, but these errors were encountered: