Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 44356  / 2 Years ago, mon, february 21, 2022, 7:15:01

Question



What are the differences between the following commands?



df

df -h

df -l


Feedback



Information is greatly appreciated. Thank you.


More From » disk-usage

 Answers
1

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.



df


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.



df -h


tells df to display sizes in Gigabyte, Megabyte, or Kilobyte as appropriate, akin to the way a human would describe sizes. Actually, the h stands for "human-readable".



df -l


tells df to display only local filesystems, but no remote ones.


[#26826] Wednesday, February 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
utschang

Total Points: 357
Total Questions: 120
Total Answers: 119

Location: Croatia
Member since Sat, May 2, 2020
4 Years ago
utschang questions
Mon, Aug 30, 21, 14:09, 3 Years ago
Tue, May 17, 22, 20:44, 2 Years ago
Sun, Jul 11, 21, 23:54, 3 Years ago
Tue, Sep 7, 21, 04:23, 3 Years ago
;