How can I look at total disk space on linux, including all partitions?
- User
How can I look at total disk space on linux, including all partitions?
- Assistant
To view the total disk space and usage on a Linux system, including all partitions, you can use a few different commands in the terminal. Here are the most common methods:
1.
dfCommandThe
df(disk filesystem) command provides a summary of disk space usage for all mounted filesystems. To display the information in a human-readable format (e.g., showing sizes in KB, MB, or GB), use the-hoption:df -hThis will show you a list of all mounted filesystems along with their size, used space, available space, and the mount point.
2.
lsblkCommandThe
lsblkcommand lists all block devices, including their partitions and disk space: