Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [disk-cleanup]

The tag has no usage guidance.

-2
votes
1answer
44 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
2answers
91 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
2answers
823 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 ...
2
votes
1answer
42 views

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, ...
1
vote
2answers
262 views

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 ...
4
votes
2answers
130 views

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 ...
0
votes
2answers
343 views

Wipe a USB flash drive and recreate a filesystem

I'm using this to wipe a USB flash drive and recreate a FAT filesystem: dd if=/dev/zero of=/dev/sdb bs=1M #I don't need more advanced wiping fdisk /dev/sdb (a few keystrokes to select partition ...
1
vote
1answer
296 views

$HOME/.cache - on a small SSD or on an HDD?

I have a system with a small SSD (about 90 GB available for my single Linux partition mounted as /) and a much larger HDD. Now, my home directory has been balooning in space, filling up all of the ...
1
vote
2answers
344 views

Convert identical files to hardlinks [duplicate]

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 ...
-2
votes
1answer
278 views

Root filesystem full because /platform directory

I have a solaris 10 server. The / filesystem is full beacuse the /platform directory. What type of files resides in that directory? Can I delete those files?
0
votes
1answer
321 views

ramdisk, how to clean every x min files older than X min

To setup a cron job to purge outdated cache files that are more than 8 minutes old every 10 minutes on disk its an easy task. # crontab -e */10 * * * * root find /tmp/diskcache -type f -mmin +8 -...
0
votes
1answer
46 views

Debian 8.6 - Large file at root called EMPTY

Recently I've been doing some maintenance on a cloud-hosted server I run. My host is DreamHost, specifically their DreamCompute service and the server is running Debian 8.6. While cleaning up old ...
2
votes
2answers
1k views

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 ...
-2
votes
1answer
105 views

Java code for exam [closed]

import java.io.*; class B_13 { public static void main(String[] args)throws Antifundamentalist,UnsupportedEncodingException { File file = new File("/rr"); String[] myFiles; int ...
5
votes
1answer
143 views

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 ...
0
votes
2answers
1k views

List all directories whose contents (files) have not been updated or accessed before a certain date?

Would like to easily located folders to archive/trash and an easy way to automate this would be to choose folders I haven't made any use of for years. Since folders themselves can have different ...
5
votes
1answer
3k views

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). ...
0
votes
2answers
441 views

Linux tools for deleting backups when they get too old?

I was looking at SQL Server 2000 today, and it has an argument in the EXECUTE command called -DelBkUps for deleting backups that are of a certain age. Does Linux have any tools for deleting backups ...
0
votes
1answer
468 views

How to remount filesystem at logout?

I need to clear tmpfs after each logout from system (Ubuntu x86_64).
0
votes
1answer
410 views

How to list down all useless or less used files or application in my linux server?

I want to clean cruft from my Oracle Linux server. For this, I need to know which application or directory isn't used or is hardly ever accessed. Is there any command or way to list directories or ...
9
votes
7answers
2k views

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 ...
4
votes
1answer
185 views

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 ...
56
votes
3answers
39k views

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.
1
vote
2answers
1k views

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 ...