Questions tagged [disk-cleanup]
33 questions
315
votes
3 answers
Can I remove files in /var/log/journal and /var/cache/abrt-di/usr?
I use Fedora and these directories contains a large amount of files, I wonder whether I can delete them? The system is running low on space.
hgajshb
- 3,715
- 4
- 18
- 18
10
votes
7 answers
How to tidy up the .keywords file on a gentoo system?
One can select testing packages on a gentoo stable system by adding a line with the following syntax to keywords list:
cat /etc/portage/package.keywords
=dev-python/ipython-0.13.2 ~amd64
# and many lines later
=dev-python/ipython-0.14.1 ~amd64
# and…
Jonas Stein
- 3,898
- 4
- 34
- 55
6
votes
1 answer
Remove unnecessary configuration folders
Many applications create a hidden folder in /home/user. I've tested many applications that I later uninstalled.
Is there a way to check which folders have been left behind in my home folder by applications no longer installed on the system?
To Do
- 1,296
- 2
- 12
- 29
5
votes
1 answer
Completely remove remains of sysvinit
As opposed to people who want to get rid of systemd, I want to completely and safely remove sysvinit.
I've been using Debian since Debian 7.0 (Wheezy). Currently I'm using Debian 9.0 (Stretch). During one of the system upgrades there was move from…
patryk.beza
- 1,179
- 1
- 13
- 25
4
votes
2 answers
Is there a good reason to keep some files in $HOME/.cache when backing up?
I'm about to back up some parts of my filesystem, including my home directory. I'm looking at $HOME/.cache, and wondering what I should do with it. I know that it's safe to just delete it altogether, but I also notice that most of the space is taken…
einpoklum
- 8,772
- 19
- 65
- 129
4
votes
2 answers
Restore a USB flash drive in a standard state for use in Linux, Windows, etc
Since this question, I'm using:
dd if=/dev/zero of=/dev/sdb bs=1M # wipe the disk
fdisk /dev/sdb <<< $'n\np\n\n\n\nt\nb\np\nw\n' # create a partition
mkfs.fat /dev/sdb1 # FAT format the partition
to…
Basj
- 2,351
- 9
- 37
- 70
4
votes
1 answer
Remote script cleaning up
I run a remote script using ssh:
local script:
local_command
ssh -p 222 user@server 'sh -s' < ./remote_run.sh
remote script:
some_command &
sleep 10000
trap 'echo exiting' SIGINT SIGTERM SIGABRT SIGKILL EXIT
I need a trap on remote script for…
Dmitry Eskin
- 141
- 4
3
votes
2 answers
Lots of missing files in debsums output
I run debsums -cs in a machine running Debian Jessie. The output is lots of missing files.
Lots of them (maybe all) has some sort of locale two letters code (like zh, fr, de, and so on).
I have run BleachBit and some Debian tool to make free space…
Pierre B
- 2,143
- 6
- 23
- 38
2
votes
0 answers
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 retrieving them again, via some update or by using…
mYnDstrEAm
- 4,008
- 13
- 49
- 108
2
votes
0 answers
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
require temporary files or directories that are…
Jonas Stein
- 3,898
- 4
- 34
- 55
2
votes
2 answers
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
679376 /var/snap/microk8s/common/run
683324 …
Josh
- 121
- 3
2
votes
2 answers
Switching from Win10 to Linux: AV, defrag, disk cleanup tools, etc
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 recommend similar tools for the Linux OS.
With regards…
SupGen
- 51
- 4
2
votes
2 answers
Convert identical files to hardlinks
I have a lot of music in a tree under one directory, saved in whatever format I initially got it in, for quality. I have a second directory tree which is similar in structure, but with all files in a lossy-compressed format playable by my phone, and…
Vivian
- 317
- 3
- 14
1
vote
2 answers
How to identify and remove orphaned config files of uninstalled Software?
Programs often store config files in the home directory usually in a hidden directory, often but not limited to sub-directories of ~/.config, ~/.local or ~/.gnome
After uninstalling the programs, the config-files are still kept (which usually is…
dynobo
- 111
- 2
1
vote
2 answers
Remove first instance of lines with duplicate field value
I have sha1 summed all the image files on my storage server and put the results in a text file in the form of:
sha1sum filename
I've sorted the file and removed all all unique sha1sum entries. So what I am left with is a list of duplicate files.…
Graeme Russ
- 11
- 2