当前位置:网站首页>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
边栏推荐
- Guava immutable set
- Folding mobile phones are expected to explode, or help Samsung compete with apple and Chinese mobile phones
- Which securities company is good for opening a mobile account? Is it safe to open a mobile account?
- [OSPF routing calculation (class I LSA router, class II LSA network, and class III LSA sum net)] -20211228-30
- Leetcode topic [array] -36- effective Sudoku
- Leetcode sword finger offer question brushing - day 27
- Noi Mathematics: Dirichlet convolution
- Tutorial 35 of SAP ui5 application development - how to deploy locally developed SAP ui5 applications to ABAP server for trial reading
- Some common errors and solutions of using SAP ui5 to consume OData services
- Semantic segmentation cvpr2020 unsupervised intra domain adaptation for semantic segmentation through self supervision
猜你喜欢

Instant messaging project (I)

Timed thread pool

Semantic segmentation cvpr2020 unsupervised intra domain adaptation for semantic segmentation through self supervision
SAP ui5 tutorial for beginners part XXVI - detailed steps for using OData service with mock server trial version
How the sap ui5 framework performs single step debugging of batch requests

MySQL operation JSON
[kicad image] download and installation

Mongodb basic concept learning - Documentation

ERDAS 9.2 installation tutorial

What happens when redis runs out of memory
随机推荐
Synchonized introduction
Go language map sorting (key/value sorting)
SAP ui5 beginner tutorial No. 28 - Introduction to the integration test tool OPA for SAP ui5 applications
Technology inventory: past, present and future of Message Oriented Middleware
[untitled]
What changes have taken place in the project file after SAP ui5 tools ran the Fiori add deploy config command
MySQL transaction learning notes (I) first encounter
DOM proficient? What is the difference between node and elment?
Kubevela v1.2 release: the graphical operation console velaux you want is finally here!
Trial version of routing history and routing back and history of SAP ui5
ThreadLocal
An example of recursion, the full permutation problem of 1~n
Wireless industrial Internet of things data monitoring terminal
Use of arrays tool class
SAP ui5 date type sap ui. model. type. Analysis of date parsing format
Various errors and solutions encountered when deploying SAP ui5 application to ABAP server with SAP Fiori tools
What is hybrid web containers for SAP ui5
You can't specify target table for update in from clause error in MySQL
SAP Fiori tools and corresponding cli (command line interface)
Configuration file ui5 local in SAP ui5 tools Configuration points of yaml