【运维经】第51章——linux下7z安装、压缩、解压

运维经–目录


linux下7z安装、压缩、解压

1.安装

$ sudo yum install p7zip

2.解压

$ 7za x boost_1_72_0.7z

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,4 CPUs Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (406E3),ASM)        
Scanning the drive for archives:
1 file, 91358526 bytes (88 MiB)

Extracting archive: boost_1_72_0.7z
--
Path = boost_1_72_0.7z
Type = 7z
Physical Size = 91358526
Headers Size = 779797
Method = LZMA:25
Solid = +
Blocks = 1

Everything is Ok

Folders: 6043
Files: 64810
Size:       633756328
Compressed: 91358526

3.压缩

$ 7za a -t7z -r boost.7z boost_1_72_0/

参数:
a 添加
-t7z type,压缩类型
-r 压缩目录

发布了82 篇原创文章 · 获赞 14 · 访问量 9147

猜你喜欢

转载自blog.csdn.net/xk_xx/article/details/104858783