ulimit: Limit user resources

User limits - limit the use of system-wide resources.
Syntax
ulimit [-acdfHlmnpsStuv] [limit]

Options

-S Change and report the soft limit associated with a resource.
-H Change and report the hard limit associated with a resource.

-a All current limits are reported.
-c The maximum size of core files created.
-d The maximum size of a process?s data segment.
-f The maximum size of files created by the shell(default option)
-l The maximum size that may be locked into memory.
-m The maximum resident set size.
-n The maximum number of open file descriptors.
-p The pipe buffer size.
-s The maximum stack size.
-t The maximum amount of cpu time in seconds.
-u The maximum number of processes available to a single user.
-v The maximum amount of virtual memory available to the process.
ulimit provides control over the resources available to the shell and to processes started by it, on systems that allow such control.
If limit is given, it is the new value of the specified
resource. Otherwise, the current value of the soft limit for the specified resource
is printed, unless the `-H? option is supplied.
When setting new limits, if neither `-H? nor `-S? is supplied, both the hard
and soft limits are set.

Values are in 1024-byte increments, except for `-t?, which is in seconds, `-p?,
which is in units of 512-byte blocks, and `-n? and `-u?, which are unscaled
values.
The return status is zero unless an invalid option is supplied,
a non-numeric argument other than unlimited is supplied as a limit, or
an error occurs while setting a new limit.
ulimit is a bash built in command.

“Every man is a damn fool for at least five minutes every day; wisdom consists of not exceeding that limit” - Elbert Hubbard
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (5 + 8) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 10.09.2009
Views: 1645
Item date: 02.01.2009
Views: 1579
Item date: 01.07.2009
Views: 537
Item date: 03.01.2009
Views: 1976
Item date: 28.06.2010
Views: 2057
Item date: 10.04.2009
Views: 1287
Item date: 09.03.2009
Views: 1197