Skip to content

Instantly share code, notes, and snippets.

@eminorhan
Created September 29, 2022 18:06
Show Gist options
  • Save eminorhan/6f9e4fe285c0e4f91f8b4b99b21a9254 to your computer and use it in GitHub Desktop.
Save eminorhan/6f9e4fe285c0e4f91f8b4b99b21a9254 to your computer and use it in GitHub Desktop.
count number of files in a tar archive without extracting
tar -tf archive.tar | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment