Find a file in a tgz file:
$tar -ztvf backup-1.tgz | grep file.txt
-rw-rw-r– user/user 43376920 2017-07-10 11:59 path/to/file.txt
Restore a file from a tgz file:
$tar -zxvf backup-1.tgz path/to/file.txt
Find a file in a tgz file:
$tar -ztvf backup-1.tgz | grep file.txt
-rw-rw-r– user/user 43376920 2017-07-10 11:59 path/to/file.txt
Restore a file from a tgz file:
$tar -zxvf backup-1.tgz path/to/file.txt