24.5 Limiting File Sizes
Here is a technique to keep you from creating large files (which can
happen by accident, such as runaway programs).
To set a maximum file size, use the C shell command (usually in your
With this command, UNIX will refuse to allocate more disk space to any file that grows larger than 2 MB.
Similarly, on Berkeley systems, you can use limit and ulimit to restrict the size of core dump files (52.9 ) . Core dumps are generally large files and are often generated for innocuous reasons, such as invoking commands incorrectly. To set a maximum size for core dumps, execute one of these commands:
To eliminate core dumps entirely, use
- from O'Reilly & Associates' System Performance Tuning , Chapter 5