How to get file/folder size with SSH on linux?
use the du command
du -m filename
du -msh FolderName
will get the size with units. Unlike using -h, this will show a single size, while -h shows all the individual files within the folder.
e.g.
349M FolderName
du
is the primary tool for this, but if you're looking for something more interactive, I quite like ncdu