-1

I am going through the Linux documentation and trying to answer the following questions

  1. On which partition is your home directory?
  2. How many partitions are on your system?
  3. What is the total size of your Linux installation?

I used the following commands to answer 1 & 2 but how to answer 3?

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           385M  1.7M  384M   1% /run
/dev/sda2       916G  9.0G  860G   2% /
tmpfs           1.9G  8.0K  1.9G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda1       511M  6.1M  505M   2% /boot/efi
tmpfs           385M  128K  385M   1% /run/user/1000

$ df -h /home/rishik
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       916G  9.0G  860G   2% /

$ df -h | wc -l
9

1 Answer 1

1

You have two real disk partitions, sda1 and sda2. Since sda1 is 511MB and sda2 is 916GB, your total size is roughly 917GB.

2
  • 2
    Off topic question and give a man a fish ...
    – Nic3500
    Dec 29, 2018 at 5:06
  • instead of df use du du -sh
    – mckenzm
    Dec 29, 2018 at 10:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .