-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$

 

相关文章:

  • 2021-05-30
  • 2021-09-29
  • 2022-12-23
  • 2021-12-30
  • 2021-10-18
  • 2022-12-23
猜你喜欢
  • 2021-07-18
  • 2022-02-01
  • 2021-06-02
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案