Linux中的bz2压缩格式的实例详解
Linux中的bz2压缩格式的实例详解
一语法
bzip2源文件 压缩为bz2格式,不保存源文件 bzip2-k源文件 压缩之后保留原文件 注意:bzip2命令不能压缩目录 bzip2-d压缩文件 解压缩,-k保留压缩文件 bunzip2压缩文件 解压缩,-k保留压缩文件
二实战
[root@localhosttest]#ls abccdfdirtst [root@localhosttest]#bzip2abc [root@localhosttest]#ls abc.bz2cdfdirtst [root@localhosttest]#bzip2-kcdf [root@localhosttest]#ls abc.bz2cdfcdf.bz2dirtst [root@localhosttest]#bzip2-dabc.bz2 [root@localhosttest]#ls abccdfcdf.bz2dirtst [root@localhosttest]#rm-frcdf [root@localhosttest]#ls abccdf.bz2dirtst [root@localhosttest]#bunzip2cdf.bz2 [root@localhosttest]#ls abccdfdirtst
以上就是Linux中的bz2压缩格式的实例详解,如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!