Display the total disk usage of a folder and its subdirectories in human-readable format
To display only the grand total of the given directory including all the sub-directories, use grep
command with du
command like below.
du -ch folder-name/ | grep total
Output
15G total