Contents
What does the df command do in Linux?
The df command (short for disk free), is used to display information related to file systems about total space and available space. If no file name is given, it displays the space available on all currently mounted file systems.
Is df a byte?
df displays the values in the units of first available SIZE from –block-size (which is an option) and from the DF_BLOCK_SIZE, BLOCKSIZE AND BLOCK_SIZE environment variables. By default, units are set to 1024 bytes or 512 bytes(if POSIXLY_CORRECT is set) .
What is the output of df in Linux?
Use the df command to show the amount of free disk space on each mounted disk. The usable disk space that is reported by df reflects only 90 percent of full capacity, as the reporting statistics leave 10 percent above the total available space. This head room normally stays empty for better performance.
What does df mean in slang?
Disease Free” or “Drug Free. On online dating sites, such as Craigslist, Tinder, Zoosk and Match.com, DF usually means “Disease Free” or “Drug Free.”
How does the df command work in Linux?
LINUX being command friendly provides a command line utility for this i.e df command that displays the amount of disk space available on the file system containing each file name argument. If no file name is passed as an argument with df command then it shows the space available on all currently mounted file systems.
What’s the difference between DF and du file size?
The page you link to is wrong. du shows block usage by default, not file size. You have to do du -b or du –apparent-size to get the effect you describe. Probably df is accounting for all the space allocated for inodes and other administrative overhead, whereas du is just accounting for the space used by the files.
How to show disk space with df command?
1 If no file name is passed as an argument with df command then it shows the space available on all currently mounted file systems 2 . 3 By default, df shows the disk space in 1 K blocks.
How to scale files by size in Linux?
-a,- -all : It includes all the dummy files also in the output which are actually having zero block sizes. -B,- -block-size=S : This is the option we were talking in the above para which is used to scale sizes by SIZE like -BM prints sizes in units of 1,048,576 bytes.