From 4a19b7558cf4632ba177c176a31895f67e3b4904 Mon Sep 17 00:00:00 2001 From: millert Date: Sun, 15 Sep 1996 03:41:57 +0000 Subject: [PATCH] document ``ulimit'' builtin. --- bin/sh/sh.1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 -- 2.20.1