Show how much disk space a directory or file uses with a single command.
bash
du -sh <PATH>
Arguments:
#NameDescription1PATHPath to file or directory to measure
bash
du -sh /home/user/projects
Output:
text
1.2G /home/user/projects
Format: SIZE PATH