Sometime you need to list the contents of a tar or tar.gz file on the screen before extracting the all files.
Task: List the contents of a tar file
Use the following command:
$ tar -tvf file.tar
Task: List the contents of a tar.gz file
Use the following command:
$ tar -ztvf file.tar.gz
Task: List the contents of a tar.bz2 file
Use the following command:
$ tar -jtvf file.tar.bz2
Enjoy!!!
Latest posts by Alan (see all)
- Install Plesk 8.1 Without SiteBuilder But With MSDE From The Command Line - July 13, 2007
- How To Delete Email For a Particular User - July 2, 2007
- How To List The Contents of a Tar File - July 2, 2007