•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 423,489 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,718 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 760 | Replies: 2
![]() |
•
•
Join Date: Oct 2007
Posts: 271
Reputation:
Rep Power: 1
Solved Threads: 26
Hey There,
du is a good command to use to check a folder size. Compare that against your baseline (whatever your "too big" limit is) and, at that point, just use rm -rf to remove the contents. You'll probably want to run it in cron if it's a persistent check.
Best wishes,
Mike
du is a good command to use to check a folder size. Compare that against your baseline (whatever your "too big" limit is) and, at that point, just use rm -rf to remove the contents. You'll probably want to run it in cron if it's a persistent check.
Best wishes,
Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- explorer.exe uses 99% CPU (Viruses, Spyware and other Nasties)
- Creating a "Data" folder in my C: Drive using my Java program (Java)
- Help! HJT log can't access internet anymore (Viruses, Spyware and other Nasties)
- A W32 Virus (Viruses, Spyware and other Nasties)
- Aurora, DrPmon, MHTMLRedir problems (Viruses, Spyware and other Nasties)
- I've got Trojan.Holax... is this bad? (Viruses, Spyware and other Nasties)
- McAfee Notice after eliminating Downloader-VG Trojan (Viruses, Spyware and other Nasties)
- not-a-virusadware (Viruses, Spyware and other Nasties)
- JoeOneEye- prosearching.com problem (Viruses, Spyware and other Nasties)
Other Threads in the Shell Scripting Forum
- Previous Thread: csh vs sh
- Next Thread: editting questions


Linear Mode