To read the contents of tar file without extracting use "tar -tf" option as follows:
If the archive contains multiple files and directories, it is recommended to force the output to less for easier viewing, as the following;
You will be able to view contents .tar, .tar.gz files without extracting them
$ tar -tf filename.tar.gz
If the archive contains multiple files and directories, it is recommended to force the output to less for easier viewing, as the following;
$ tar tf filename.tar.gz | less
You will be able to view contents .tar, .tar.gz files without extracting them
No comments:
Post a Comment