Find the largest 10 files in a directory
Uses 'du' command to find file and directory sizes in the current working directory, then sorts by size and displays 10 largest files
Authored by: Christopher MurrayBrought to you by Warp, a free terminal reimagined to work like a modern app.
directory
Command
Copy
du -ah . | sort -hr | head -n 10
Tags
Edit in GitHub
Copied