How To Check Partition Size In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. To check the size of the partition in Linux, you can use the df command. This command will list all of the filesystems currently mounted and their size. For example, if you wanted to find out the size of the root partition, you could use the following command:
# df –h / | grep sda
2. Another useful command is fdisk, which will show you the partition table of the drive and the size of each partition. For example, if you wanted to find out the size of the root partition, you could use this command:
# fdisk –l /dev/sda
3. Finally, you can also use the lsblk command to view the partition size. This command will list all of the block devices on the system and the size of each one. For example, if you wanted to find out the size of the root partition, you could use the following command:
# lsblk –o NAME,SIZE /dev/sda