see size of folder linux in megabytes code example Example: see how large a directory is linux # du -a /home | sort -n -r | head -n 5