List contents of gzipped tar archive

tar -tzf archive.tgz

Tar and encrypt from list

tar -cz -T files.lst | gpg --cipher-algo AES -c -o files.tgz.gpg

Where files.lst is a list of files, gathered by e.g (all systems.txt or details.txt files under user’s home directory):

find ~ -type f -name "systems.txt" -o -name "details.txt" 2>/dev/null > files.lst

Last modified: 20/12/2011 Tags:

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top