[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to "clean up" home directory

Posted on 2009-02-12
5
Medium Priority
?
1,142 Views
Last Modified: 2013-12-05
Hello Experts,
I have my home directory on a partition of its own of 10GB.
Although I save all my daily work on a separate partition, it is getting fuller and fuller and is now 99% full. So I am looking for suggestions on what I might delete or move to another partition.
0
Comment
Question by:doitso
  • 3
  • 2
5 Comments
 
LVL 1

Expert Comment

by:boulosj
ID: 23622040
So you are saying that your 10gb partition is the one that is up to 99%?

First would be to find out why it is filling up by finding the offender.  It might be some tmp logs or something.  

Go to that partition and run:

du -h --max-depth=1

That will tell you the total size of the directories at the root of that partition.  If you want to find out just ones that are over a gigabyte and put them in order, run:

du -h --max-depth=1 | grep -e[0-9]G

Once you get that list, drill down and keep running it (replacing the G at the end of the grep to M for megabyte) till you find who is taking all your space.

If it is a log thing, you can either set a limit on how large the logs can grow, or have them placed somewhere else.
0
 

Author Comment

by:doitso
ID: 23630381
Hello boulosj,

thank you for your comment.  It already has been helpful to some extent. Much space seems to have  been taken up by .../Trash in spite of the fact that I regularly emty Trash as user doitso. But it seems it has been necessary to empty it under root, which I did now. So now only 6.6 GB of the 10 GB still are in use, i. e. 65% instead of the previous 99%.
 But the command ~> du -h --max-depth=6  | grep -e[0-9]M still shows me lots of directories like these:
282M    ./.local/share/Trash/files/2008_12_23/3gr
395M    ./.local/share/Trash/files/2008_12_23

Probably I should get rid of those, too? But how? Just "emptying the trashbin" in the GUI does not seem to do the trick.

Well, since I am really a beginner and not acquainted with the linux shell, let me show you what I did on your suggestion and what was the outcome. So maybe, seeing this, you could give me some more advice?

> So you are saying that your 10gb partition is the one that is up to 99%?

Yes, exactly, that is the /home directory, in which there is only one user besides root.

> First would be to find out why it is filling up by finding the offender.  
Excellent idea. Thanks.

> It might be some tmp logs or something.  
 /tmp and /var are on partitions of their own.

> Go to that partition and run: du -h --max-depth=1

The outcome of linux-bpww:/home # du -h --max-depth=1
is:
6.6G    ./doitso
3.2G    ./.Trash-0
9.8G    .

Ah, it seems "Trash" already takes a lot of space. So after emptying it:
linux-bpww:/home # du -h --max-depth=1 | grep -e[0-9]G
6.6G    ./doitso

Now, the same for the only user doitso:
over 1 G:
1,5G    ./.thumbnails
3,9G    ./.local
6,6G    .O

~> du -h --max-depth=1 | grep -e[0-9]M
23M     ./bin
32M     ./.kde
5,0M    ./.java
1,3M    ./.wapi
5,3M    ./.spamassassin
771M    ./.beagle
9,1M    ./.mozilla
44M     ./.googleearth
5,3M    ./.ooo-2.0
311M    ./.evolution
21M     ./.adobe
90M     ./.fonts
6,5M    ./.opera

0
 
LVL 1

Accepted Solution

by:
boulosj earned 2000 total points
ID: 23632377
Now that you got rid of the Trash folder, things should be better--but why do you have a local/share/Trash that is filling up?  Well, I did some searching and found the answer...

It sounds like you are doing a lot in the GUI (as opposed to shell).  Apparently, some applications use this XDG standard which tells applications to send trash to ./local/share/Trash.  That is quite annoying, but I think that is what is happening.  By the way, credit goes to a guy named Matt Mossholder on launchpad.net for explaining this to another user who had a similar problem.  I might be wrong in assuming this is the case since Matt's answer was for Ubuntu and you are on SUSE, but I would guess this is the same issue.

So, point is, you will probably have stuff go here when you delete from certain applications.  You should schedule this directory for cleanup as well.  Are you having any trouble deleting that?

What is in that beagle directory?  It is taking alot of space too.  Is it an application?

0
 

Author Comment

by:doitso
ID: 23639841
Thanks a lot, boulosj. Your advice solved my problem

> It sounds like you are doing a lot in the GUI (as opposed to shell).  
Yes, I am doing everything I can in the GUI.

> Apparently, some applications use this XDG standard which tells applications to send trash to ./local/share/Trash.  That is quite annoying, but I think that is what is happening.  By the way, credit goes to a guy named Matt Mossholder on launchpad.net for explaining this to another user who had a similar problem.  I might be wrong in assuming this is the case since Matt's answer was for Ubuntu and you are on SUSE, but I would guess this is the same issue.

Yes, thanks, seems that is the case also with my SUSE installation.

> So, point is, you will probably have stuff go here when you delete from certain applications.  You should schedule this directory for cleanup as well.  Are you having any trouble deleting that?

I now managed after all, doing it as Root. It is a bit complicated, since I could not do it as simple user, but after all I managed. And only 27% of my home directory are used now, which is just fine.

>What is in that beagle directory?  It is taking alot of space too.  Is it an application?
This seems to be the Kerry Beagle Search. So if ever I am in need of space I might also clean this up. It is a thing I tried to find files with. But since I rarely find it useful and have other tools to do this, I might also get rid of this if need be. But actually I am quite satisfied with the space I have in my home directory now.  Thank you very much for your advice, which was of great help for me.
0
 

Author Closing Comment

by:doitso
ID: 31546877
Thanks a lot, boulosj. Your advice solved my problem

> It sounds like you are doing a lot in the GUI (as opposed to shell).  
Yes, I am doing everything I can in the GUI.

> Apparently, some applications use this XDG standard which tells applications to send trash to ./local/share/Trash.  That is quite annoying, but I think that is what is happening.  By the way, credit goes to a guy named Matt Mossholder on launchpad.net for explaining this to another user who had a similar problem.  I might be wrong in assuming this is the case since Matt's answer was for Ubuntu and you are on SUSE, but I would guess this is the same issue.

Yes, thanks, seems that is the case also with my SUSE installation.

> So, point is, you will probably have stuff go here when you delete from certain applications.  You should schedule this directory for cleanup as well.  Are you having any trouble deleting that?

I now managed after all, doing it as Root. It is a bit complicated, since I could not do it as simple user, but after all I managed. And only 27% of my home directory are used now, which is just fine.

>What is in that beagle directory?  It is taking alot of space too.  Is it an application?
This seems to be the Kerry Beagle Search. So if ever I am in need of space I might also clean this up. It is a thing I tried to find files with. But since I rarely find it useful and have other tools to do this, I might also get rid of this if need be. But actually I am quite satisfied with the space I have in my home directory now.  Thank you very much for your advice, which was of great help for me.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question