Linux中的bz2壓縮格式的實例詳解
更新時間:2017年08月30日 10:01:41 作者:cakin24
這篇文章主要介紹了Linux中的bz2壓縮格式的實例詳解的相關資料,希望通過本文大家能理解掌握這部分內(nèi)容,需要的朋友可以參考下
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壓縮格式的實例詳解,如有疑問請留言或者到本站社區(qū)交流討論,感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
相關文章
檢測網(wǎng)站down掉后自動發(fā)信的shell腳本代碼
腳本用途:檢測指定文件中的網(wǎng)站url,當一個網(wǎng)站down掉后,自動給指定的郵箱發(fā)信2013-02-02
linux下python3連接mysql數(shù)據(jù)庫問題
這篇文章主要介紹了linux下python3連接mysql數(shù)據(jù)庫問題,需要的朋友可以參考下2015-10-10

