Questions tagged [disk-cleanup]
The disk-cleanup tag has no summary.
35 questions
5
votes
1
answer
40k
views
How to clean up a Linux system to free up disk space?
What are some generic ways to free up lots of storage space without deleting personal files?
I'm doing a distro upgrade (Debian11->12) and it needs lots of disk space on the root partition / which ...
0
votes
1
answer
2k
views
What is the difference between yay -Sc and yay -Scc?
I have seen seen people online use
yay -Sc,
but I have also seen people use
yay -Scc
What is the difference? There is a man page segment for yay -Sc:
-Sc Yay will also clean cached AUR package ...
0
votes
1
answer
2k
views
GCP /dev/sda1/ Disk Space Full, Shows 90% In Use, but Mounting SDA1 only showing 6GB. What is using all my space?
I'm running Wordpress instance on top of a Linux GCP VM instance. In SSH, running cmd 'df -h' I see /dev/sda1 is 91% used up. I mounted sda1 to see what could be taking up all the space, but ...
-1
votes
1
answer
2k
views
How to quickly and securly erase data on a disk?
I'm going to securely erase the data on a HDD so that I can donate it.
I use shred which is a specialized the tool for this puprose.
So I run shred -vfz /dev/sdd1 and it does its job:
shred: /dev/...
0
votes
1
answer
222
views
How to release the disk space of Linux home directory under another system
I have a SSD with an Ubuntu system, but for some reason the disk space is full. Now it is impossible to enter the system normally. How can I release disk space and reenter the system normally?
This ...
2
votes
0
answers
1k
views
ClamAV's main.cld file is too large - can it be removed or compressed?
The main.cld file in /var/lib/clamav/ is over 400 MB in size and daily.cld is over 150 MB.
Are these filesizes normal and can these files be made smaller somehow? For example, by deleting them and ...
1
vote
1
answer
3k
views
How to clean up flatpak files in ~/.local/share/flatpak/repo/objects/?
flatpak list shows me that I only have one app and Freedesktop.org Software Development Kit (probably dependency for that app; ca 900MB) installed with flatpak and flatpak uninstall --unused returns ...
0
votes
1
answer
8k
views
How to clean "/dev/mapper/rootvg-root_lv" after YUM?
I run Yum update on CentOS and suddenly i got disk space hike on /dev/mapper/rootvg-root_lv
[intor@alp-pp03 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs ...
0
votes
0
answers
2k
views
How to move log files in /var/log/journal to free disk space without losing logs?
I'd like to later check if there is a way / software to easily scan logs for issues one should look into² and if such exists scan all logs, including old logs. This is why for now I'd like to keep the ...
3
votes
0
answers
7k
views
When to clean up /var/tmp?
/var/tmp is not defined in POSIX, but is defined in FHS:
5.15. /var/tmp : Temporary files preserved between system reboots
5.15.1. Purpose
The /var/tmp directory is made available for programs that
...
0
votes
1
answer
118
views
Filelight /home in /usr/share
I needed to remove some files in / and I noticed I have a folder /home/myusername in /usr/share whereas no such folder appear when I list the directoty, symbolik link or else in /usr/share.
What could ...
2
votes
2
answers
3k
views
Is it safe to remove contents from var / swapfile / tmp?
The thing is /home has only used 11GB whereas /var uses 14GB, /temp 11GB and /swapfile 2.4GB
Can I safely do sudo rm * in the last three directories?
Contents from sudo du /var | sort -n | tail -20
...
-2
votes
1
answer
370
views
How to identify and remove packages no longer in use? [closed]
For some reason I have installed a lot of packages on my Linux distros (Fedora/CentOS/Debian/Ubuntu/Arch/...). Some of them are only for one-time use. But they will be included for upgrade whenever I ...
2
votes
2
answers
152
views
Switching from Win10 to Linux: AV, defrag, disk cleanup tools, etc [closed]
I installed Linux Mint on my desktop in place of Windows 10.
I am used to having virus/malware Scanners, defragmenters, Disk Clean up tools etc.
I was wondering if people here would be able to ...
0
votes
2
answers
4k
views
How do I cleanup a boot partition that can't be cleaned up with package-cleanup?
I recently reinstalled CentOS 7 on a lab/development machine. I wanted to keep the /home partition from the previous installation, so I manually configured the partitioning to allow me to do that. In ...