-t,-type=TYPE : It will only show the output of file systems having type TYPE.-P,-portability : It uses the POSIX output format.-l,-local : This will display the disk usage of only local file systems.-i,-inodes : This option is used when you want to display the inode information instead of block usage.-H,-si : This option is same as -h but it use powers of 1000 instead of 1024.-h,-human-readable : It print sizes in human readable format.– -total : It is used to display the grand total for size.-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.-a,-all : It includes all the dummy files also in the output which are actually having zero block sizes.Now, what if you don’t give any filename t df, in that case df displays the disk usage information for all mounted file systems as shown below: //using df without any filename // Suppose you have a file named kt.txt and you want to know the used disk space on the file system that contains this file then you can use df in this case as: // using df for a specific file //įilesystem 1K-blocks Used Available Use% Mounted on The disk space usage of a particular file system only. OPTION : to the options compatible with df commandįILE : specific filename in case you want to know Here, SIZE is an integer and optional unit and units are K, M, G, T, P, E, Z, Y (as K in kilo). By default, units are set to 1024 bytes or 512 bytes(if POSIXLY_CORRECT is set).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, df shows the disk space in 1 K blocks.This is something you might wanna know cause df command is not able to show the space available on unmounted file systems and the reason for this is that for doing this on some systems requires very deep knowledge of file system structures. If no file name is passed as an argument with df command then it shows the space available on all currently mounted file systems.ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.
0 Comments
Leave a Reply. |