LoginSignup
2
1

More than 3 years have passed since last update.

Linuxでディスク使用量を監視する

Posted at

Linuxでディスク使用量を監視したかったのでちょっと調べてみたら watch というコマンドを見つけた。

$ watch -n 1 df -k

を実行すると、1秒毎に下記の画面がリフレッシュされる。

Every 1.0s: df -k                                  graviohub: Thu Sep 10 14:15:28 2020

Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/root       15008307 13057103   1292403  91% /
devtmpfs         1965540        0   1965540   0% /dev
tmpfs            1967840        0   1967840   0% /dev/shm
tmpfs            1967840    67128   1900712   4% /run
tmpfs               5120        4      5116   1% /run/lock
tmpfs            1967840        0   1967840   0% /sys/fs/cgroup
tmpfs             393568        0    393568   0% /run/user/1000

がっつり解析せずにちょっとした傾向とか知りたいときに便利。

watch-df.gif

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1