Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got a linux system whose harddrive is 10% full which seems way higher than it should be at this point in time. I'm trying to find out which directory on the system is using up this space. I want to know what command will tell me which directories are using the most space.
I know that "df" will kind of do what I want. It reports that /dev/xvda1 is using 10%, but now I want to go into /dev/xvda1 and see which directories in there are using what not. How can I accomplish this?
And it tells me that 1.8gb are in my folder where I thought there would be a lot more. So this makes me curious about something.
I used to have many gbs of images inside of mysql database. But I deleted that system and I'm pretty sure my disk space never went down to reflect that delete. Is there any chance that I need to do a defrag of the mysql database or something to get that disk space back? I'm pretty sure I'm not using as much disk space as my system thinks I am.
root@wh33t:/var/lib/mysql# ls -l
total 7203752
-rw-r--r-- 1 root root 0 Feb 1 18:55 debian-5.5.flag
-rw-rw---- 1 mysql mysql 7358906368 Mar 22 18:48 ibdata1
-rw-rw---- 1 mysql mysql 5242880 Mar 22 18:48 ib_logfile0
-rw-rw---- 1 mysql mysql 5242880 Mar 22 17:11 ib_logfile1
I see that there is an ibdata1 file in there that is 7.3gb?! Is it safe for me to just go ahead and remove it?
When you delete files, they don't go away entirely. They just go into the trash. You have to empty the trash to reclaim the disk space used by the deleted files.
When you delete files, they don't go away entirely. They just go into the trash. You have to empty the trash to reclaim the disk space used by the deleted files.
Yeah, and even then emptying the trash doesn't "really" delete them, but even still, the free space should still be reported correctly right?
Anyhow, I deleted that file and now my mysql server won't boot. I guess I need to trouble shoot that now... damn it!~
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.