十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團隊
量身定制 + 運營維護+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
這篇文章主要介紹Linux中bz2壓縮格式的示例分析,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
Linux中的bz2壓縮格式的實例詳解
一 語法
bzip2 源文件 壓縮為bz2格式,不保存源文件 bzip2 -k 源文件 壓縮之后保留原文件 注意:bzip2命令不能壓縮目錄 bzip2 -d 壓縮文件 解壓縮,-k保留壓縮文件 bunzip2 壓縮文件 解壓縮,-k保留壓縮文件
二 實戰(zhàn)
[root@localhost test]# ls abc cdf dirtst [root@localhost test]# bzip2 abc [root@localhost test]# ls abc.bz2 cdf dirtst [root@localhost test]# bzip2 -k cdf [root@localhost test]# ls abc.bz2 cdf cdf.bz2 dirtst [root@localhost test]# bzip2 -d abc.bz2 [root@localhost test]# ls abc cdf cdf.bz2 dirtst [root@localhost test]# rm -fr cdf [root@localhost test]# ls abc cdf.bz2 dirtst [root@localhost test]# bunzip2 cdf.bz2 [root@localhost test]# ls abc cdf dirtst
以上是“Linux中bz2壓縮格式的示例分析”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!