LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-15-2004, 09:09 PM   #1
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Rep: Reputation: 15
Listing files bigger than 20MB


Hi,

I'm using redhat linux 7.3 on my remote server. I'm running out of space fast so I need to list all files larger than 20MB in size under the /home folder and all subfolders.

I'd like to see this information with full paths and files sizes if possible.

I have root access.

What command should I use?
 
Old 09-15-2004, 09:51 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
The command your looking for is

Code:
find -size +20480k
 
Old 09-15-2004, 10:03 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by leonscape
The command your looking for is

Code:
find -size +20480k
but how do you get the output to show the file sizes??

 
Old 09-15-2004, 10:12 PM   #4
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
add the -ls flag
 
Old 09-16-2004, 02:00 AM   #5
deWin
Member
 
Registered: Feb 2004
Distribution: Red Hat 9
Posts: 113

Original Poster
Rep: Reputation: 15
well the first one was good enough, it helped me save about 2 GB which should last me another 2 to 3 months without getting a new hard drive in my server.

You guys rock!
 
Old 09-16-2004, 06:46 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by AAnarchYY
add the -ls flag
cool. thanks.
 
  


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
Can't create files bigger than 0 bytes GameboyHippo Linux - General 1 03-01-2005 08:04 PM
Problems making files bigger than 4Gb. Riddick Linux - Software 9 08-20-2004 09:27 AM
webserver cuts off upload of bigger files sporkit Linux - Networking 11 08-05-2004 02:36 PM
listing files in a directory Linh Programming 7 05-17-2004 04:35 AM
Sampling bits of information in bigger and bigger pieces lugoteehalt General 0 10-29-2003 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 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