get total size of files linux code example
Example 1: check folder size in linux terminal
du -sh /home/user/
Example 2: see how large a directory is linux
# du -a /home | sort -n -r | head -n 5
du -sh /home/user/
# du -a /home | sort -n -r | head -n 5