Last active
April 15, 2019 14:47
-
-
Save medwig/e57e65c0ed04325e0360349cb0828c3e to your computer and use it in GitHub Desktop.
List files sorted by size - Linux
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
alias ducks="du -cksh .[^.]* * 2> /dev/null | sort -h -r | head" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
List top 10 files by size - including hidden files, displayed in human readable format (K, M, G)-bytes.
The given
du
command will throw an error if there is no hidden .files to find, so we can safely hide the error by redirecting stderr to/dev/null
.