get directory size for files and directory ubuntu code example Example: ubuntu get folder size du -hs /path/to/directory