tft每日頭條

 > 科技

 > linux壓縮zip文件命令

linux壓縮zip文件命令

科技 更新时间:2025-02-10 07:45:37

linux壓縮zip文件命令(Linuxunzip命令解壓zip文件)1

unzip 命令可以查看和解壓縮 zip 文件。該命令的基本格式如下:

[root@localhost ~]# unzip [選項] 壓縮包名

此命令常用的選項以及各自的含義如表 1 所示。

linux壓縮zip文件命令(Linuxunzip命令解壓zip文件)2

表 1 unzip 命令常用選項及含義

【例 1】不論是文件壓縮包,還是目錄壓縮包,都可以直接解壓縮,例如:

[root@localhost ~]# unzip dir1.zip Archive: dir1.zip creating: dirl/ #解壓縮

【例 2】使用 -d 選項手動指定解壓縮位置,例如:

[root@localhost ~]# unzip -d /tmp/ ana.zip Archive: ana.zip inflating: /tmp/anaconda-ks.cfg #把壓縮包解壓到指定位置

我是大仁筆記,歡迎一起學習交流。

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关科技资讯推荐

热门科技资讯推荐

网友关注

Copyright 2023-2025 - www.tftnews.com All Rights Reserved