本文共 298 字,大约阅读时间需要 1 分钟。
1.压缩命令:
命令格式:tar -zcvf 压缩文件名.tar.gz 被压缩文件名
可先切换到当前目录下。压缩文件名和被压缩文件名都可加入路径。
如果需要在后台执行,不占用进程的时间,需要在命令格式后面加 >/media/ram/c.txt&
完整命令如下:tar -zcvf 压缩文件名.tar.gz 被压缩文件名 >/media/ram/c.txt&
2.解压缩命令:
命令格式:tar -zxvf 压缩文件名.tar.gz
解压缩后的文件只能放在当前的目录。
3 如果是zip格式文件
zip格式文件
unzip all.zip
这条命令是将all.zip中的所有文件解压出来
转载地址:http://vrhxi.baihongyu.com/