UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old October 8th, 2004, 10:29 AM
yongho yongho is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 57 yongho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 38 m 20 sec
Reputation Power: 5
Finding all files that exceed X megabytes.

I'm running putty.exe and I wish to list all files on the server that exceed a certain size, for example 5mb. We exceeded our backup storage and I wish to know what's taking up so much space.

Reply With Quote
  #2  
Old October 8th, 2004, 10:52 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
Code:
find /path -size +5242880c -print
or
find /path -size +5242880c -exec ll {} \;

Change the 5242880 number to reflect the size you want

Reply With Quote
  #3  
Old October 8th, 2004, 11:05 AM
yongho yongho is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 57 yongho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 38 m 20 sec
Reputation Power: 5
oof

thank you very much
that's exactly what i wanted
unfortunately i'm still not sure where the extra 115gb of data came from or where it is, yet. all i know is they were added to the server in the month of sept, last month... maybe we have a hacker?

can i modify the command to search for files greater than X, but less than Y?

is there a command I can use to check the overall size of every file on the server and the size of a directory?

Reply With Quote
  #4  
Old October 8th, 2004, 11:33 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
If someone has installed a root kit, it means those files will not show up with conventional commands - quota, ls, find and some others will not report files that the root kit does not want you to see. Get a fresh copy of cksum and use it to verify
system utilities that report on disks - ls, find etc.
Code:
find /path (-size +5242880c -a -size -10000000c) -exec ll {} \;

puts an upper and lower bound on find

Quote:
is there a command I can use to check the overall size of every file on the server and the size of a directory?

Code:
for regular files
find /  -type f -exec ll {} \;
for directories
find / -type d -exec ll {} \;

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Finding all files that exceed X megabytes.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway