LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2002, 08:02 PM   #1
graystarr
Member
 
Registered: Dec 2001
Location: Layton, Utah
Distribution: Red Hat 8.0 and Mandrake 9.0
Posts: 85

Rep: Reputation: 15
Question How to clear up disk space?


Not sure how to clear up disk space in linux. I am receiving disk space low messages and would like to fix this issue. I have it installed on a 10 gig hd and only running apache on it and my home directory for apache is on another hd (60gb). Any help would be great. I know how in windoze but really need to get this fixed so my website does not crash
 
Old 01-24-2002, 05:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it all depends where the space has gone, maybe you've been generating vast log files without knowing. maybe ther's a few 100meg cores lying arond.. prolly not.
use 'df' to see how much space is around on each partition, and also you might want to look at 'du' to see exactly where the space is going. i generally do

'du -h | grep M | less' just to cut out all the tiny directories that don't matter.
 
Old 01-24-2002, 07:54 AM   #3
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Rep: Reputation: 30
core files: these are memory dumps and such that you probably don't need... try
find / -type f -name core -type f -xdev -exec rm -f {} \;

and you can find the biggest files in a directory with this:
ls -l | sort +4n
or
ls -lR | sort +4n
for recursive search.

also, i find that ' du -h --max-depth=1 ' is useful to find which directories are the biggest and ' df -hTl ' to list your partitions and sizes

what linux distro and version are u using? you can go through your installed packages and uninstall what you don't need
 
Old 01-24-2002, 08:44 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
And in a case of core files, if you are using c or korn shell, run the limit command to set the core files to be less or equal the size you specify, also take a look at your logs, some of them are just rediculously huge and just sit there for nothing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
removing language support to clear space paranoid times Linux - Software 0 04-15-2005 11:46 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
What's a good way to clear up some space kidicarus Debian 9 06-14-2004 07:41 PM
Clear out Linux Mandrake disk space? aaronlc Linux - Software 5 02-18-2003 07:09 PM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration