Toriyung

导航

linux指令:压缩包

1. .tar文件

https://blog.csdn.net/freeking101/article/details/51480295

tar -<>

<>里面决定是压缩(c)还是解压(x),是什么文件格式。需要注意的是f一定是在最后,因为f后就要跟文件名

 

 

2. .rar文件

1)安装rar压缩工具
sudo apt-get install rar
2)安装unrar解压缩工具
sudo apt-get install unrar

 

解压:

unrar x example.rar /path/to/destination/

example.rar是压缩文件,/path/to/destination/是解压后的路径,切记/结尾

 

 

3. .lz4文件

1)安装lz4工具

apt-get install liblz4-tool

 

解压:

  lz4 -d file.lz4 /path/to/destination/file

 

posted on 2024-03-03 17:22  Toriyung  阅读(1)  评论(0编辑  收藏  举报