linux list files with size code example Example 1: list file size as mb ls -l --block-size=M Example 2: linux command to list directory size sudo du -sh /var