LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-30-2005, 07:09 AM   #1
dr_zayus69
Member
 
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, 07:42 AM   #2
gomerb
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, 07:51 AM   #3
amosf
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...
 
  


Reply


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


All times are GMT -5. The time now is 10:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration