
Here's a preview from my zine, Bite Size Command Line!! If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!

read the transcript!
du
tells you how much disk space files/directories take up
-s
: summary: total size of all files in a directory
-h
: human readable sizes
df
tells you how much free space each partition has. -h
for human-readable sizes
Filesystem |
Size |
Used |
Avail |
Use% |
Mounted on |
---|---|---|---|---|---|
/dev/sda3 |
18G |
G |
2.5G |
86% |
/ |
udev |
483M |
4.0K |
483M |
1% |
/dev |
tmpf s |
99M |
1.4M |
97M |
2% |
/run |
/dev/sda4 |
167G |
157G |
9.9G |
95% |
/home |
df -i
instead of % disk fee, report how many inodes are used/fee on each partition
happy little stick person: running out of inodes is VERY ANNOYING. You can’t create new files!
ncdu
see what’s using disk space in an interactive way
17.5 GiB | [#####] | /music |
---|---|---|
3.2 GiB | [## ] | /photos |
5.7 MiB | [ ] | /code |
2.0 MiB | [ ] | file.pdf |
iostat
get statistics about disk reads/writes
# iostat 5
(interval to report at)`
Device: | kB_read/s | kB_wrtn/s |
---|---|---|
sda | 2190.21 | 652.87 |
sdb | 6.00 | 0.00 |