tar的-t参数使用
-t, --list
list the contents of an archive
例如:
pengdl@localhost:~/test$ tar -czvf shell.tar.gz shell
shell/
shell/sh1.sh
shell/sh2.sh
pengdl@localhost:~/test$
pengdl@localhost:~/test$ tar -tzvf shell.tar.gz
drwxr-xr-x pengdl/pengdl 0 2013-08-15 04:17 shell/
-rwxr--r-- pengdl/pengdl 215 2013-08-15 04:16 shell/sh1.sh
-rwxr--r-- pengdl/pengdl 45 2013-08-15 04:08 shell/sh2.sh
pengdl@localhost:~/test$
本文来自博客园,作者:摩斯电码,未经同意,禁止转载