Reclaim disk space¶
Clear the cache¶
An easy way to reclaim a sizeable amount of disk space is to clear the cache in a user’s home directory.
Run the following command:
$ rm -rf ~/.cache/*
Limit the maximum capacity of the system journal¶
If left at default values and not checked for a long time, the system journal logs can eventually consume multiple Gigabytes of data. To set the maximum allowable size of the system journal logs 1:
As root (or using
sudo
), modify the/etc/systemd/journald.conf
fileLocate the following line:
#SystemMaxUse=
Uncomment the line by removing the preceding
#
characterSet a max threshhold in MB (M), GB (G), etc. For example, a 512 MB max capacity is represented as:
SystemMaxUse=512M
Save the file
Restart the journald service:
$ sudo systemctl restart systemd-journald.service