How to find out the size of folders in the current directory via SSH

A short note on how to find out the size of files and folders in ssh.

We execute the command:

du -sh *

Sorted by size:

du -sch ./*|sort -hr

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
The comment language code.