在linux中打包,如后缀.tar.gz,如果我们想查看压缩包的文件内容,而又不想通过解压的方式,可以使用-t参数。
[root@localhost shell]# ls
extundelete-0.2.4 extundelete-0.2.4.tar.bz2 hello.pl
[root@localhost shell]# tar -tvf extundelete-0.2.4.tar.bz2
drwxr-xr-x 1000/1000 0 2013-01-04 03:11 extundelete-0.2.4/
-rw-r--r-- 1000/1000 3283 2012-11-03 11:54 extundelete-0.2.4/acinclude.m4
-rwxr-xr-x 1000/1000 10346 2013-01-04 03:10 extundelete-0.2.4/missing
-rwxr-xr-x 1000/1000 372 2012-12-31 02:25 extundelete-0.2.4/autogen.sh
-rw-r--r-- 1000/1000 0 2013-01-04 03:10 extundelete-0.2.4/aclocal.m4
-rwxr--r-- 1000/1000 231557 2013-01-04 03:10 extundelete-0.2.4/configure
-rw-r--r-- 1000/1000 17987 2012-11-03 11:54 extundelete-0.2.4/LICENSE
-rw-r--r-- 1000/1000 1666 2012-11-03 11:54 extundelete-0.2.4/README
-rwxr-xr-x 1000/1000 13998 2013-01-04 03:10 extundelete-0.2.4/install-sh
-rw-r--r-- 1000/1000 4780 2013-01-04 03:10 extundelete-0.2.4/config.h.in
drwxr-xr-x 1000/1000 0 2013-01-04 03:11 extundelete-0.2.4/src/
-rw-r--r-- 1000/1000 61470 2013-01-04 03:04 extundelete-0.2.4/src/extundelete.cc