In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
The purpose of this article is to share with you about how to use Linux system management df commands. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Df
1. The df command is used to check the disk footprint of the file system, with permissions for all users.
two。 Format df [options]
3. Main parameters
-s: only the total number of blocks occupied is given for each Names parameter.
-a: recursively displays the number of data blocks occupied by each file in the specified directory and in each subdirectory. If neither-s nor-an is specified, only the number of disk blocks occupied by each directory and its subdirectories in the Names is displayed.
-k: lists disk space usage in 1024 bytes.
-x: directories skipped on different file systems are not counted.
-l: calculate all file sizes and multiple times for hard-linked files.
-I: displays inode information instead of block usage.
-h: print out the file system size in an easy-to-understand format, such as 136KB, 254MB, 21GB.
-P: use the POSIX output format.
-T: displays the file system type.
4. Description
The df command is widely used to generate file system usage statistics, which can display information about all file systems in the system, including total capacity, available free space, current mount points, and so on. When using the df command, a super-privileged user will find that the capacity of a partition exceeds 100%. This is because the Linux system reserves 10 per cent of the space for superusers, which is at their disposal. In other words, for a superuser, the capacity of the hard drive he sees will be 110%. This arrangement is good for system management, and the system administrator can work normally when the capacity of the hard disk is close to 100%.
5. Application example
Linux supports many file systems, including JFS, ReiserFS, ext, ext2, ext3, ISO9660, XFS, Minx, vfat, MSDOS, and so on. You can also get information about the file system when you use the df-T command to view disk space:
# df-T
File system type capacity used available used mount point
/ dev/hda7 reiserfs 5.2G 1.6G 3.7G 30% /
/ dev/hda1 vfat 2.4G 1.6G 827M 66% / windows/C
/ dev/hda5 vfat 3.0G 1.7G 1.3G 57% / windows/D
/ dev/hda9 vfat 3.0G 2.4G 566m 82% / windows/E
/ dev/hda10 NTFS 3.2G 573M 2.6G 18% / windows/F
/ dev/hda11 vfat 1.6G 1.5G 23m 99% / windows/G
From the above, you can see not only the capacity and usage of disk space, but also the file system type and mount point of the partition.
Thank you for reading! This is the end of this article on "how to use df commands in Linux system Management". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.