Fun fact: If you use Archive Manager and extract a .tar.gz so that you have "Keep directory structure" unticked, you will get a tarbomb.
tar -ztf
lists all the files and directories in a tar file.
Is there a way to list all the files in a tar file, without the directory structure?
tar xvzf my_tar.tar.gz --transform 's/.*\///'
. But unfortunately that doesn't change how it displays in a listing witht
rather thanx
. – ire_and_curses Nov 15 '13 at 15:37