Showing posts with label list tar content. Show all posts
Showing posts with label list tar content. Show all posts

Tuesday, September 13, 2016

List TAR file content without extracting in unix

$ tar -tf  filename.tar

If TAR contains more files and directories, you can use "less" option for easier viewing

$ tar -tf  filename.tar | less

If you wish to see file directory information then you can use "tvf" option

$ tar -tvf  filename.tar | less