Listing the content of a tar file or a directory only down to some level February 14, 2023 by Tarik depth=1 tar --exclude="*/*" -tf file.tar depth=2 tar --exclude="*/*/*" -tf file.tar