当前位置:网站首页>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
边栏推荐
- Oracle SQL statement operand: rounding, rounding, differentiation and formatting
- PIP connects to Tsinghua source by default
- Feignclient reported an error npe:null
- PHP output (print) log to TXT text
- Use of pytorch tensorboard
- By inserting a section break, the word header, footer, and page number can start from any page
- Differences and connections between sap ui5 and openui5
- cacacahe
- Trial version of routing history and routing back and history of SAP ui5
- Interface learning
猜你喜欢

Folding mobile phones are expected to explode, or help Samsung compete with apple and Chinese mobile phones

Day21 JMeter usage basis
SAP ui5 date type sap ui. model. type. Analysis of date parsing format

Day22 send request and parameterization using JMeter

16 application problem solving

Use of pytorch tensorboard
How SAP ui5 device type detection device API works
Part 34 of SAP ui5 application development tutorial - device adaptation of SAP ui5 application based on device type

Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034

Mirror image of binary tree
随机推荐
Introduction to the main features of kyma when the cloud native application runs
Websocket in the promotion of vegetable farmers
ThreadLocal
How do product managers get started? How do they learn when no one takes them?
Trouble of setting table property to null
SAP ui5 beginner tutorial No. 28 - Introduction to the integration test tool OPA for SAP ui5 applications
The simplest way to tell you is to hash and not hash
Unsupervised domain adaptation in semantic segmentation:a review unsupervised domain adaptation in semantic segmentation: a review
Soft exam information system project manager_ Management Science (Operations Research) -- senior information system project manager of soft test 033
Mongodb delete data
Day19 (variable parameter, enhanced for loop traversal, generic wildcard <? >, TreeSet, linkedhashset, nested traversal of sets, set set, static import,)
Introduction to sap ui5 tools
MySQL uses the where condition to find strange results: solve
Guava new collection type
No one reads the series. Source code analysis of copyonwritearraylist
MySQL tuning --01--- optimization steps and system performance parameters
Go implements LRU cache
Cnpm installation
C simple operation mongodb
Design of IM login server and message server