How to learn size of a folder in linux terminal with ssh ?

Using this command will give you size of a folder:

“du -ms folder/”

For learning size of a file

“du -m file.txt”

m for megabytes

Advertisements