Last active
March 10, 2025 18:30
-
-
Save thebouv/8657674 to your computer and use it in GitHub Desktop.
ducks: linux command for the 10 largest files in current directory
This file contains hidden or 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
du -cks * | sort -rn | head -11 | |
# Usually set this up in my bash profile as an alias: | |
# alias ducks='du -cks * | sort -rn | head -11' | |
# Because it is fun to type ducks on the command line. :) |
Suddenly wondering why this has got attention when I posted it in 2014. Weird.
@georgedorn Yeah guess it’s just never come up. 🤷🏼♂️
I saw it linked on Mastodon.
I saw it linked on Mastodon.
Hah! Neat.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mcguirepr89 this fails on folders with spaces in the name.
@thebouv I'd use
du -cksx
if there are any symlinks or sshfs mounts into large networked filesystem, like a NAS...