Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This 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.


  Search this Thread
Old 06-30-2005, 08:09 AM   #1
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
best way to find out what is taking up the bulk of your hard drive space?

hi im trying to backup some stuff from hard drive one to hard drive two for a fresh install on harddrive one. however harddrive two is almost filled and i don't think it will hold all the stuff to back up. What is the best way to find out what is taking up all the space? I think i remember reading in my shell scripting book about something that could search and would display files above a certain size that you set. I think it might have been something to do with awk or sed i'd have to check it again. i appreciate any reply, thanks in advance.
Old 06-30-2005, 08:42 AM   #2
LQ Newbie
Registered: Jun 2005
Location: Traralgon, Victoria, Australia
Distribution: Mandrake 9.2
Posts: 3

Rep: Reputation: 0
Find it with find´┐Ż

The find command will do this for you - and a lot of other stuff.
man find -will show that find has a heap of options including file size.

cd to the directory at the top of the tree you want to search from and run

find . -size +1000k -ls

will show everything over a megabyte in size.

Once you are happy with the results you can even get find to remove the files for you (dangerous!).

find /junk -size +10000k -exec rm {} \;
Old 06-30-2005, 08:51 AM   #3
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
fsview will also give a nice graphical representation of what and where the data is, which can help visualize it for you...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hard Drive Space exaudiomag Linux - Newbie 3 01-05-2005 07:47 PM
Erasing Hard Drive with dd taking waaayyyy too long mtrisk Linux - Hardware 3 06-23-2004 02:20 AM
Hard Drive space doralsoral Linux - Software 1 11-08-2003 05:19 PM
Hard Drive Space Odd_Bloke Linux - Newbie 4 09-13-2003 09:44 AM
Available Hard Drive Space? Lampei Linux - Newbie 6 07-07-2003 04:08 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:14 AM.

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