0514-86177077
9:00-17:00(工作日)
Linux中的bz2壓縮格式的實例詳解
一 語法
bzip2 源文件 壓縮為bz2格式,不保存源文件 bzip2 -k 源文件 壓縮之后保留原文件 注意:bzip2命令不能壓縮目錄 bzip2 -d 壓縮文件 解壓縮,-k保留壓縮文件 bunzip2 壓縮文件 解壓縮,-k保留壓縮文件
二 實戰
[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壓縮格式的實例詳解,如有疑問請留言或者到本站社區交流討論,感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
標簽:烏蘭察布 昌都 贛州 海北 連云港 廣東 撫州 臨沂
上一篇:Linux禁止普通用戶su至root的解決方法
下一篇:Linux鏈接命令的實例詳解
Copyright ? 1999-2012 誠信 合法 規范的巨人網絡通訊始建于2005年
蘇ICP備15040257號-8