Linux / UNIX Tech Support Forum
This is a discussion on Find Files By Size and Print Results within the Getting started tutorials forums, part of the Linux Getting Started category; Hello Friends, This is a basic find command that I modified a bit to show the size of the file ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| The Following User Says Thank You to jaysunn For This Useful Post: | ||
raj (20-11-2009)
| ||
| Sponsored Links | ||
|
|
|
||||
|
Code:
find /usr/local/apache/logs -type f -size +20000k -exec ls -lh {} \; | awk '{print $9 ": " $5}'
By the way your location is set to 41.332032,-73.089775?? Is it google map location or just some random stuff fro /dev/random
__________________
Raj Linux rulz. I have never turned back in my life ; I shall not do so today.. haha |
|
||||
|
What's Up Raj,
That location is for real. Derby CT, United States. As for the logs. Apache access_logs are used to show the access hits from the external users IP as well as other information. If you are not using those logs for gathering stat data then feel free to remove them. Perform a graceful restart of apache and it will recreate them at 0. As for the apache error_logs, if you are not using those to gather data. They also can be removed. They will also get recreated when running a apache graceful restart. Code:
$/usr/local/apache/bin/apachectl graceful On redhat, the file is Code:
/etc/logrotate.conf |
![]() |
| Tags |
| find , find file linux , find file unix , linux find a file by size |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Awk Find Smallest And Largest File Size in Directory | Phass | Shell scripting | 4 | 26-07-2009 05:40 PM |
| Shell Script To Check Null Files ( size greater than zero ) | shellscript916 | Shell scripting | 1 | 22-05-2009 12:37 AM |
| How to find Total nuber files/size in a server? | mahi | Solaris/OpenSolaris | 1 | 02-10-2008 11:48 AM |
| Load balancing pooling print jobs using CUPS print queues | raj | Getting started tutorials | 0 | 16-01-2007 09:08 PM |
| moving files based on size | kavi | Shell scripting | 2 | 11-11-2005 05:17 PM |