diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-15 03:41:58 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-15 03:41:58 +0000 |
commit | c0f6f527c3a926d2ec4496051a51ff08b7a3c87c (patch) | |
tree | 644d8bc8872b330e9e94c01ab5e17296592b6fa4 /bin | |
parent | a86e26dc090545cb6aa9a1e407a7d148f323e28e (diff) |
document ``ulimit'' builtin.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/sh.1 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index eb8d701f6a2..24a4a329abd 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sh.1,v 1.2 1996/06/23 14:21:32 deraadt Exp $ +.\" $OpenBSD: sh.1,v 1.3 1996/09/15 03:41:57 millert Exp $ .\" $NetBSD: sh.1,v 1.15 1995/05/11 21:30:18 christos Exp $ .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -1273,6 +1273,23 @@ resets trapped (but not ignored) signals to the default action. The trap command has no effect on signals that were ignored on entry to the shell. .TP +ulimit [ -H | -S ] [ -a | -resource [ maximum-use ] ] +Show or set the current process limits (see getrlimit(2)). +If ``-a'' is specified, all current limits are shown. +To specify +.I hard +or +.I soft +process limits, use the ``-H'' and ``-S'' options respectively +(by default both soft and hard limits are used). +To get or set a resource, call it by the first letter. +For example, to set the max number of processes to 256 one +would do ``ulimit -p 256''. ``ulimit -p unlimited'' would +unlimit the number of processes (or set to the maximum allowed). +If no resource is specified, +.I file +size is assumed. +.TP umask [ mask ] Set the value of umask (see umask(2)) to the specified octal value. If the argument is omitted, the |