Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
实例中对数据进行压缩和解压
.tar
.zip
.rar
.7z
# 下载安装工具 curl -L -o /usr/bin/arc http://autodl-public.ks3-cn-beijing.ksyun.com/tool/arc && chmod +x /usr/bin/arc # 压缩/打包 arc compress xxx.zip path/to/directory # 解压 arc decompress xxx.zip 或者解压到指定目录 arc decompress xxx.zip path/to/directory
unzip
apt-get update && apt-get install -y fastjar jar xvf xxx.zip
# 压缩。如果没有zip命令,安装命令:apt-get update && apt-get install -y zip zip -r <自定义压缩包名称>.zip <待压缩目录的路径> # 解压。如果没有zip命令,安装命令:apt-get update && apt-get install -y unzip unzip <待解压压缩包名称>.zip -d <解压到哪个路径>
# 压缩(具体是指打包,未压缩,非常推荐这种方式,因为压缩/解压都耗时,但是图片等都无法再压缩) tar -cf <自定义压缩包名称>.tar <待压缩目录的路径> # 解压 tar -xf <待解压压缩包名称>.tar -C <解压到哪个路径>
# 压缩 tar -czf <自定义压缩包名称>.tar <待压缩目录的路径> # 解压 tar -xzf <待解压压缩包名称>.tar -C <解压到哪个路径>
# 不推荐使用rar的包,linux下非常不常用 # 解压。如果没有zip命令,安装命令:apt-get update && apt-get install -y unrar unrar e <待解压压缩包名称>.rar