Created
May 8, 2018 17:17
-
-
Save gomesar/d77228fd1cd805783f0e41cae0716ec9 to your computer and use it in GitHub Desktop.
Find 10 largest files in directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Find 10 largest files in directory | |
# find /path/to/search/ -type f -printf '%s %p\n'| sort -nr | head -10 | |
find "${1}" -type f -printf '%s %p\n'| sort -nr | head -10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment