find size of a folder terminal 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/