国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Linux服務器 > 正文

Linux的壓縮和解壓縮的方法總結

2024-09-05 23:04:09
字體:
來源:轉載
供稿:網友

Linux的壓縮和解壓縮的方法總結

一 常用的壓縮格式

  • .zip
  • .gz
  • .bz2
  • .tar.gz
  • .tar.bz2

 二 .zip格式壓縮

1、語法

zip 壓縮文件名 源文件名

壓縮文件

zip -r 壓縮文件名 源目錄

壓縮目錄

unzip 壓縮文件

解壓縮.zip文件

2、說明

.zip的格式在windows和LInux是通用的。

3、實戰

root@localhost test]# lsabc cdf[root@localhost test]# zip abc.zip abcadding: abc (stored 0%)[root@localhost test]# mkdir dirtst[root@localhost test]# touch ./dirtst/ert[root@localhost test]# zip -r dirtst.zip dirtstadding: dirtst/ (stored 0%)adding: dirtst/ert (stored 0%)[root@localhost test]# lsabc abc.zip cdf dirtst dirtst.zip[root@localhost test]# rm -fr abc[root@localhost test]# lsabc.zip cdf dirtst dirtst.zip[root@localhost test]# unzip abc.zipArchive: abc.zipextracting: abc[root@localhost test]# lsabc abc.zip cdf dirtst dirtst.zip[root@localhost test]# rm -rf dirtst[root@localhost test]# unzip dirtst.zipArchive: dirtst.zipcreating: dirtst/extracting: dirtst/ert[root@localhost test]# lsabc abc.zip cdf dirtst dirtst.zip

以上就是Linux 壓縮和解壓縮的實例詳解,如有疑問請留言或者到本站社區交流討論,感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 渝中区| 南丹县| 芜湖市| 玉龙| 苍山县| 建宁县| 雅江县| 安龙县| 四会市| 平湖市| 兴文县| 台东县| 建昌县| 东兴市| 蓝田县| 当涂县| 上饶县| 钦州市| 防城港市| 北碚区| 靖宇县| 苍溪县| 莱州市| 敖汉旗| 库伦旗| 马鞍山市| 高碑店市| 娄底市| 抚宁县| 泗洪县| 会泽县| 吉林省| 乐亭县| 泾阳县| 梓潼县| 桐柏县| 闵行区| 民和| 黎川县| 康保县| 承德市|