日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網營銷解決方案
率Linux查看磁盤使用率:一步到位(linux查詢磁盤占用)

Modern linux systems have a wealth of tools available to help users understand their disk usage and query the status of their filesystems. One of the simplest and most commonly used commands is the `df` command, which displays the total size, used and available space and the usage percentage of all mounted filesystems.

成都創(chuàng)新互聯(lián)公司堅持“要么做到,要么別承諾”的工作理念,服務領域包括:網站建設、做網站、企業(yè)官網、英文網站、手機端網站、網站推廣等服務,滿足客戶于互聯(lián)網時代的西鄉(xiāng)塘網站設計、移動媒體設計的需求,幫助企業(yè)找到有效的互聯(lián)網解決方案。努力成為您成熟可靠的網絡建設合作伙伴!

In its simplest form the `df` command can be run without any arguments and it will display the disk usage information for all filesystems currently mounted. An example is shown below which is run on a standard Ubuntu Linux distribution.

“`console

$ df

Filesystem 1K-blocks Used Available Use% Mounted on

udev 4915212 0 4915212 0% /dev

tmpfs 1007664 90508 917156 9% /run

/dev/sda1 70372788 37401620 27054108 54% /


On the output, the `Filesystem` field shows the name of the mounted filesystem, e.g. `/dev/sda1`, the `1K-blocks` field shows the total size of the filesystem, `Used` field shows the used space, `Available` field shows the available space and the `Use%` field shows the used percentage. It's worth pointing out that the `Use%` is calculated differently than `Used` divided by `Size` in that it is based on the amount of data that can be stored in the available space.

Using the `-h` option with the `df` command makes the output more human readable by displaying values in a more standard byte size format. This can be very handy when dealing with large filesystems.

```console
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 5G 0 5G 0% /dev
tmpfs 1.0G 90M 917M 9% /run
/dev/sda1 68G 37G 27G 54% /

Finally the `-a` argument will display all mounted filesystems, including pseudo filesystems such as `/dev`, `/sys`, `/proc` and `/run`.

“`console

$ df -ah

Filesystem Size Used Avail Use% Mounted on

/dev/sda1 68G 37G 27G 54% /

udev 5G 0 5G 0% /dev

tmpfs 1.0G 90M 917M 9% /run

/dev/shm 902M 76K 902M 1% /dev/shm

/run/lock 902M 0 902M 0% /run/lock

/sys/fs/cgroup 902M 12K 902M 1% /sys/fs/cgroup

/run/user/1000 902M 48K 902M 1% /run/user/1000


The `df` command is just one of the many useful tools available to query the state and usage of filesystems on a modern Linux system. As always, it's good practice to periodically review your disk usage to keep it within acceptable limits and to identify any potential problems before they become serious.

香港服務器選創(chuàng)新互聯(lián),2H2G首月10元開通。
創(chuàng)新互聯(lián)(www.cdcxhl.com)互聯(lián)網服務提供商,擁有超過10年的服務器租用、服務器托管、云服務器、虛擬主機、網站系統(tǒng)開發(fā)經驗。專業(yè)提供云主機、虛擬主機、域名注冊、VPS主機、云服務器、香港云服務器、免備案服務器等。


當前題目:率Linux查看磁盤使用率:一步到位(linux查詢磁盤占用)
文章地址:http://www.dlmjj.cn/article/coiejei.html