How can I see the size of files and directories in linux?

The du command.

 

Size of a directory

 

$ du -sh /d0

 

Size of a file

 

$ du -h /d0/hello