|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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.
|
|
#2
|
|||
|
|||
|
Code:
find /path -size +5242880c -print
or
find /path -size +5242880c -exec ll {} \;
Change the 5242880 number to reflect the size you want |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||
|
|||
|
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:
Code:
for regular files
find / -type f -exec ll {} \;
for directories
find / -type d -exec ll {} \;
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Finding all files that exceed X megabytes. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|