Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

@(1csh)

alias(1csh)

bg(1csh)

break(1csh)

cd(1csh)

chdir(1csh)

continue(1csh)

csh(1csh)

dirs(1csh)

echo(1csh)

eval(1csh)

exec(1csh)

exit(1csh)

fg(1csh)

glob(1csh)

goto(1csh)

hashstat(1csh)

history(1csh)

jobs(1csh)

kill(1csh)

logout(1csh)

nice(1csh)

nohup(1csh)

notify(1csh)

onintr(1csh)

popd(1csh)

pushd(1csh)

rehash(1csh)

repeat(1csh)

set(1csh)

setenv(1csh)

sh(1sh)

shift(1csh)

source(1csh)

stop(1csh)

suspend(1csh)

time(1csh)

ulimit(1sh)

umask(1csh)

unhash(1csh)

unalias(1csh)

unset(1csh)

unsetenv(1csh)

wait(1csh)

which(1csh)

brk(2)

getrlimit(2)

sbrk(2)

setrlimit(2)

ulimit(3c)



LIMIT(1CSH)             COMMAND REFERENCE             LIMIT(1CSH)



NAME
     limit, unlimit - set resource limitations (csh built-in)

SYNOPSIS
     limit [ resource [ maximum ] ]
     unlimit [ resource... ]

DESCRIPTION
     With no arguments, limit prints all resource limits (see
     below for a list of limitable resources).  With only a
     resource, the limit for that resource is printed.  With a
     resource and a maximum, the limit for that resource is set
     to the given maximum, if possible.  This limit will apply to
     the current shell and is inherited by all child processes.

     The unlimit command removes the limit on the named
     resources.  If no arguments are given, all resource limits
     are removed.

     Resources that are currently controlable include cputime
     (the maximum number of CPU-seconds to be used by each
     process), filesize (the largest single file which can be
     created), datasize (the maximum growth of the data+stack
     region via sbrk(2) beyond the end of the program text),
     stacksize (the maximum size of the automatically-extended
     stack region), and coredumpsize (the size of the largest
     core dump that will be created).

     The maximum-use may be given as a (floating point or
     integer) number followed by a scale factor.  For all limits
     other than cputime the default scale is k or kilobytes (1024
     bytes); a scale factor of m or megabytes may also be used.
     For cputime the default scaling is seconds, while m for
     minutes or h for hours, or a time of the form mm:ss giving
     minutes and seconds may be used.

     For both resource names and scale factors, unambiguous
     prefixes of the names suffice.

EXAMPLES
     This example limits the size of all `core' files generated
     to 0 bytes.  This means that no `core' files will be created
     if a program terminates abnormally.

          limit coredumpsize 0

RETURN VALUE
     [NO_ERRS]      Command completed without error.

     [1]            An error of the type given in the message
                    occurred.




Printed 4/6/89                                                  1





LIMIT(1CSH)             COMMAND REFERENCE             LIMIT(1CSH)



CAVEATS
     A child process may unlimit any resources limited by the
     parent.

SEE ALSO
     @(1csh), alias(1csh), bg(1csh), break(1csh), cd(1csh),
     chdir(1csh), continue(1csh), csh(1csh), dirs(1csh),
     echo(1csh), eval(1csh), exec(1csh), exit(1csh), fg(1csh),
     glob(1csh), goto(1csh), hashstat(1csh), history(1csh),
     jobs(1csh), kill(1csh), logout(1csh), nice(1csh),
     nohup(1csh), notify(1csh), onintr(1csh), popd(1csh),
     pushd(1csh), rehash(1csh), repeat(1csh), set(1csh),
     setenv(1csh), sh(1sh), shift(1csh), source(1csh),
     stop(1csh), suspend(1csh), time(1csh), ulimit(1sh),
     umask(1csh), unhash(1csh), unalias(1csh), unset(1csh),
     unsetenv(1csh), wait(1csh), which(1csh), brk(2),
     getrlimit(2), sbrk(2), setrlimit(2), and ulimit(3c).






































Printed 4/6/89                                                  2



%%index%%
na:336,138;
sy:474,321;
de:795,2045;
ex:2840,293;
rv:3133,270;
ca:3811,154;
se:3965,1668;
%%index%%000000000123

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026