First, you need the bzip2 package. Get it from your favourite FTP site if you haven't already got one. Next, to view the contents, simply do this:
$ bzip2 -cd files.tar.bz2 | tar tvf - |
To extract, do this instead:
$ bzip2 -cd files.tar.bz2 | tar xvf - |
Of course, you can also use something like:
"tar --use-compress-program bzip2 -xvf files.tar.bz2" |
tar -xjvf linux-2.6.25.tar.bz2 -C /usr/src
本文介绍如何利用bzip2工具进行文件压缩及解压操作。具体包括查看压缩包内容的方法以及如何提取文件。同时提供了使用tar命令结合bzip2进行高效文件管理的示例。
9465

被折叠的 条评论
为什么被折叠?



