List tar contents only first level, then subdirectory & extract
Hello,
thanks for Your visit, i want to ask for advice with linux Tar.
I know i can list tar contents by command: tar tf archive.tar
If its tar.gz, i can: tar tzf archive.tar.gz
But my tar.gz is 40Gb large and its whole linux filesystem.
please kindly advice me on how i can list only arcive root directory. Then i see folder name that interest me, then how i can list only that folder contents (non recursivelly) and this way browse deep into archive. Then how i can extract example folder or file /archive.tar.gz/folder/subfolder/fileorfolder
Please can You write commands?
Thank you alot
Last edited by postcd; 07-27-2014 at 07:21 AM.
|