How can I list the largest 3 directories/files which are directly (not recursive) in my home directory using a command?
You can use these commands:
shopt -s dotglob du -hs "$HOME"/* | sort -hr | head -n3
16G /home/me/.local 455M /home/me/.minecraft 417M /home/me/.cache
I found this command which is so fast with respect to other answers
du -sm * | sort -nr | head -3