List Top 10 Largest Files and Directories

less than 1 minute read

du -hsx * 2>/dev/null | sort -rh | head -10

Note that only files and directories will be considered, for which the current user has read-permissions. There will be no error messages.

source

Leave a Comment