Check Hard Drive Size & Memory in Linux

To view the information of the hard disk size and memory, you can use the following command:

  1. To check the size of the hard drive, you can use the command df -h, which displays the size and usage of the hard drive. This command will list the sizes, used space, and remaining space of all mounted hard drive partitions.
  2. To check memory information:
    You can use the command free -h to view the usage of system memory. This command will display the total memory, used memory, available memory, as well as cache and buffer status.
bannerAds