Check disk usage on a Linux server

Linux command lines (require ssh access) to manage disk space on your web hosting account.

List the content of a folder sorted by file size (not recursive)
du -cs ~/* | sort -nr

List the content of a folder sorted by file size (recursive)
du -c ~/ | sort -nr

List the content of a folder sorted by file size (recursive), the larger in last
du -c ~/www/ | sort -n