Question
What are the differences between the following commands?
df
df -h
df -l
Feedback
Information is greatly appreciated. Thank you.
disk-usage
What are the differences between the following commands?
df
df -h
df -l
Information is greatly appreciated. Thank you.
Best Answer
First of,
df
reports file system disk space usage. That is, it displays the total size, the used and available space for each of your mounted partitions.is the default behavior, without arguments. Sizes are given in 1K-blocks (that is, 1024 bytes). Local filesystems (i.e., on hard drives on the present machine) as well as remote filesystems (e.g., mounted via NFS on a network) are listed.
tells
df
to display sizes in Gigabyte, Megabyte, or Kilobyte as appropriate, akin to the way a human would describe sizes. Actually, theh
stands for "human-readable".tells
df
to display only local filesystems, but no remote ones.