show folder sizes in ubuntu code example Example 1: ubuntu get folder size du -hs /path/to/directory Example 2: check folder size in linux terminal du -sh /home/user/