In Linux, the du and df commands are used for disk space management
The du (short for "disk usage") command is used to show the size and utilisation of a file or directory
The syntax of du command are: du <file/dir>.
To check the size of all files and directories in the current directory: du -sh 1
Use the --max-depth=N option with the du command to limit the depth of the directory tree to N levels
The df (short for "disk free") command is used to display the amount of disk space available on the file system
The syntax of du command are: df <file/dir>
To display disk space usage for all mounted file systems: df -h
Learn linux virtualisation technologies: KVM, Xen, and VirtualBox