ls file size code example Example 1: ls file size ls -l --block-size=M Example 2: linux command for file size #Get file size of each folder du -bsh *