Linux中的bz2壓縮格式的實例詳解
一 語法
bzip2 源文件壓縮為bz2格式,不保存源文件bzip2 -k 源文件壓縮之后保留原文件注意:bzip2命令不能壓縮目錄bzip2 -d 壓縮文件解壓縮,-k保留壓縮文件bunzip2 壓縮文件解壓縮,-k保留壓縮文件
二 實戰
[root@localhost test]# lsabc cdf dirtst[root@localhost test]# bzip2 abc[root@localhost test]# lsabc.bz2 cdf dirtst[root@localhost test]# bzip2 -k cdf[root@localhost test]# lsabc.bz2 cdf cdf.bz2 dirtst[root@localhost test]# bzip2 -d abc.bz2[root@localhost test]# lsabc cdf cdf.bz2 dirtst[root@localhost test]# rm -fr cdf[root@localhost test]# lsabc cdf.bz2 dirtst[root@localhost test]# bunzip2 cdf.bz2[root@localhost test]# lsabc cdf dirtst
以上就是Linux中的bz2壓縮格式的實例詳解,如有疑問請留言或者到本站社區交流討論,感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
新聞熱點
疑難解答