当前位置:网站首页>DF command – displays disk space usage
DF command – displays disk space usage
2022-06-25 05:59:00 【ProYuan28】
df The full English name of the order is “Disk Free”, As the name implies, the function is used to display the available disk space on the system . The default display unit is KB, It is recommended to use “df -h” The parameter combination of , Automatically change the appropriate unit according to the disk capacity , Better for reading .
This command is commonly used to check how much space the disk occupies 、 How much space and other information is left .
Grammar format : df [ Parameters ] [ Specified file ]
Common parameters :
-a | Show all system files |
-B < Block size > | Specifies the block size for display |
-h | Show... In an easy to read manner |
-H | With 1000 Bytes are converted to display |
-i | Display index byte information |
-k | Specify the block size as 1KB |
-l | Show only local file systems |
-t < File system type > | Only the file system of the specified type is displayed |
-T | Displays the file system type when outputting |
-- -sync | Before getting disk usage information , Execute first sync command |
Reference examples
Display disk partition usage :
[[email protected] ~]# df file system 1K- block Already used You can use Already used % Mount point devtmpfs 1980612 0 1980612 0% /dev tmpfs 1994756 0 1994756 0% /dev/shm tmpfs 1994756 1040 1993716 1% /run tmpfs 1994756 0 1994756 0% /sys/fs/cgroup /dev/mapper/fedora_linuxhell-root 15718400 2040836 13677564 13% / tmpfs 1994756 4 1994752 1% /tmp /dev/sda1 999320 128264 802244 14% /boot tmpfs 398948 0 398948 0% /run/user/0
Display partition usage in an easy to read way :
[[email protected] ~]# df -h file system Capacity Already used You can use Already used % Mount point devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 2.0G 1.1M 2.0G 1% /run tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/mapper/fedora_linuxhell-root 15G 2.0G 14G 13% / tmpfs 2.0G 4.0K 2.0G 1% /tmp /dev/sda1 976M 126M 784M 14% /boot tmpfs 390M 0 390M 0% /run/user/0
Display the disk usage of the partition where the specified file is located :
[[email protected] ~]# df /etc/dhcp file system 1K- block Already used You can use Already used % Mount point /dev/mapper/fedora_linuxcool-root 15718400 2040836 13677564 13% /
The display file type is ext4 Disk usage for :
[[email protected] ~]# df -t ext4 file system 1K- block Already used You can use Already used % Mount point /dev/sda1 999320 128264 802244 14% /boot
边栏推荐
- What is flush software? Is it safe to open an account online?
- Introduction to the main features of kyma when the cloud native application runs
- Rhcsa day 4
- "APEC industry +" biov Tech talks about the cross-border of Chinese biotechnology enterprises and "Pratt & Whitney Kangyu" | apec-hub public welfare
- The locally developed SAP ui5 application is deployed to the ABAP server to perform error analysis
- JMeter stress testing and agent recording
- Mongodb delete data
- SQL get current time
- Leetcode sword finger offer question brushing - day 27
- Semantic segmentation cvpr2020 unsupervised intra domain adaptation for semantic segmentation through self supervision
猜你喜欢
HashSet implementation class
ThreadLocal
RT thread i/o device model and layering
[day40 literature extensive reading] space and time in the child's mind: metallic or atomic
Common cluster deployment schemes in redis
Laravel8 fill data
Do you know what a three-tier architecture is?
Excel splits a worksheet into multiple worksheets according to conditions, and how to split multiple worksheets into independent tables
Volatile and JMM memory models
[interview with a large factory] meituan had two meetings. Was there a surprise in the end?
随机推荐
Day17 (set)
What is hybrid web containers for SAP ui5
SAP ui5 date type sap ui. model. type. Analysis of date parsing format
How do product managers get started? How do they learn when no one takes them?
CVPR2021-Semi-supervised Domain Adaptation based on Dual-level Domain Mixing for Semantic Segmentati
Vscode voice notes to enrich information (Part 1)
Ethernet
Feignclient reported an error npe:null
Wind farm visualization: wind farm data
Farewell to Lombok in 996
The k-th node of the binary search tree [sword finger offer]
C simple operation mongodb
JS to realize the encapsulation of the function of obtaining the mouse click position
Part 34 of SAP ui5 application development tutorial - device adaptation of SAP ui5 application based on device type
Introduction to MySQL test run test framework
Configuration file ui5 local in SAP ui5 tools Configuration points of yaml
[kicad image] download and installation
PAT (Advanced Level) Practice 1025
Multithreading and thread pool
MySQL tuning -- 02 -- slow query log