iT邦幫忙

第 12 屆 iThome 鐵人賽

0
自我挑戰組

30天菜鳥學 Linux 系列 第 44

第44篇-df命令

  • 分享至 

  • xImage
  •  

今天進度 : 鳥哥的 Linux 私房菜 -- 連上 Internet 的方法與步驟
嘗試使用 df 查看空間的使用率

test@test:~$ df
Filesystem                        1K-blocks    Used Available Use% Mounted on
udev                                 941116       0    941116   0% /dev
tmpfs                                196960    1092    195868   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  64761452 8216260  53225796  14% /
tmpfs                                984788       0    984788   0% /dev/shm
tmpfs                                  5120       0      5120   0% /run/lock
tmpfs                                984788       0    984788   0% /sys/fs/cgroup
/dev/loop0                            99456   99456         0 100% /snap/core/9993
/dev/sda2                            999320  201096    729412  22% /boot
/dev/loop2                            56320   56320         0 100% /snap/core18/1880
/dev/loop1                            56704   56704         0 100% /snap/core18/1885
/dev/loop3                           128896  128896         0 100% /snap/docker/471
/dev/loop4                              256     256         0 100% /snap/jq/6
/dev/loop5                            73088   73088         0 100% /snap/lxd/16099
/dev/loop6                            72320   72320         0 100% /snap/lxd/16922
/dev/loop7                            31104   31104         0 100% /snap/snapd/9279
/dev/loop9                             4352    4352         0 100% /snap/tree/18
tmpfs                                196956       0    196956   0% /run/user/1000
/dev/loop10                           31744   31744         0 100% /snap/snapd/9607
/dev/loop8                           100096  100096         0 100% /snap/core/10126

-h 方式顯示 MB、GB 大小

test@test:~$ df -a -h
Filesystem                         Size  Used Avail Use% Mounted on
sysfs                                 0     0     0    - /sys
proc                                  0     0     0    - /proc
udev                               920M     0  920M   0% /dev
devpts                                0     0     0    - /dev/pts
tmpfs                              193M  1.1M  192M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv   62G  7.9G   51G  14% /
securityfs                            0     0     0    - /sys/kernel/security
tmpfs                              962M     0  962M   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              962M     0  962M   0% /sys/fs/cgroup
cgroup2                               0     0     0    - /sys/fs/cgroup/unified
cgroup                                0     0     0    - /sys/fs/cgroup/systemd
pstore                                0     0     0    - /sys/fs/pstore
none                                  0     0     0    - /sys/fs/bpf
cgroup                                0     0     0    - /sys/fs/cgroup/rdma
cgroup                                0     0     0    - /sys/fs/cgroup/cpuset
cgroup                                0     0     0    - /sys/fs/cgroup/perf_event
cgroup                                0     0     0    - /sys/fs/cgroup/memory
cgroup                                0     0     0    - /sys/fs/cgroup/net_cls,net_prio
cgroup                                0     0     0    - /sys/fs/cgroup/hugetlb
cgroup                                0     0     0    - /sys/fs/cgroup/freezer
cgroup                                0     0     0    - /sys/fs/cgroup/cpu,cpuacct
cgroup                                0     0     0    - /sys/fs/cgroup/blkio
cgroup                                0     0     0    - /sys/fs/cgroup/devices
cgroup                                0     0     0    - /sys/fs/cgroup/pids
systemd-1                             -     -     -    - /proc/sys/fs/binfmt_misc
hugetlbfs                             0     0     0    - /dev/hugepages
mqueue                                0     0     0    - /dev/mqueue
debugfs                               0     0     0    - /sys/kernel/debug
tracefs                               0     0     0    - /sys/kernel/tracing
fusectl                               0     0     0    - /sys/fs/fuse/connections
configfs                              0     0     0    - /sys/kernel/config
/dev/loop0                          98M   98M     0 100% /snap/core/9993
/dev/sda2                          976M  197M  713M  22% /boot
/dev/loop2                          55M   55M     0 100% /snap/core18/1880
/dev/loop1                          56M   56M     0 100% /snap/core18/1885
/dev/loop3                         126M  126M     0 100% /snap/docker/471
/dev/loop4                         256K  256K     0 100% /snap/jq/6
/dev/loop5                          72M   72M     0 100% /snap/lxd/16099
/dev/loop6                          71M   71M     0 100% /snap/lxd/16922
/dev/loop7                          31M   31M     0 100% /snap/snapd/9279
/dev/loop9                         4.3M  4.3M     0 100% /snap/tree/18
tmpfs                              193M  1.1M  192M   1% /run/snapd/ns
nsfs                                  0     0     0    - /run/snapd/ns/lxd.mnt
nsfs                                  0     0     0    - /run/snapd/ns/docker.mnt
tmpfs                              193M     0  193M   0% /run/user/1000
nsfs                                  0     0     0    - /run/snapd/ns/jq.mnt
tracefs                               -     -     -    - /sys/kernel/debug/tracing
binfmt_misc                           0     0     0    - /proc/sys/fs/binfmt_misc
/dev/loop10                         31M   31M     0 100% /snap/snapd/9607
/dev/loop8                          98M   98M     0 100% /snap/core/10126
nsfs                                  0     0     0    - /run/snapd/ns/tree.mnt


上一篇
第43篇-IT邦 的 DNS 、憑證都快過期了?!
下一篇
第45篇-lsmod命令
系列文
30天菜鳥學 Linux 59
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言