{"id":16,"description":"tools - list contents of a tar/tar.gz archive","tags":["shell","tools","productivity","shortcuts"],"contents":["# to simply list contents of a tar archive without unarchiving it","tar -tvf file.tar # list conents of .tar file","tar -tzvf file.tar.gz # list contents of zipped tar","tar -jtvf file.tar.bz2 # list contents of tar.bz2 file","tar -tvf file.tar '*.cpp' # search for .cpp files in the archive"]}
