Archlinux 磁盘空间清理 free disk space

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Archlinux 磁盘空间清理 free disk space


# show all disk space
df -h


# list dir space size
# https://bbs.archlinux.org/viewtopic.php?id=123224
du -md1 / | sort -n


# clean pacman cache
# /var/cache/pacman
pacman -Scc


# clean journal cache
# /var/cache/journal
# https://wiki.archlinux.org/index.php/Systemd_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)/Journal_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
journalctl --disk-usage
journalctl --verify

journalctl --vacuum-time=2weeks
journalctl --vacuum-time=2d
journalctl --vacuum-size=100M