limit [ -hs ] [ resource [ limit ] ] ...
       Set  or  display  resource  limits.   Unless the -s
       the  limit  applies  only   the   children  of  the
       given  without other arguments, the resource limits
       rent  shell  is set to the previously set  resource
       children.

       If limit is not specified, print the  current  lim-
       resource,  otherwise  set  the limit to the  speci-
       the  -h  flag is given, use hard limits instead  of
       If no resource is given, print all limits.

       When looping over  multiple  resources,  the  shell
       diately  if  it  detects  a  badly formed argument.
       fails to set a limit for some other reason it  will
       ing to set the remaining limits.

       resource can be one of:

       addressspace
              Maximum amount of address space used.
       aiomemorylocked
              Maximum amount of memory locked in  RAM  for
              tions.
       aiooperations
              Maximum number of AIO operations.
       cachedthreads
              Maximum number of cached threads.
       coredumpsize
              Maximum size of a core dump.
       cputime
              Maximum CPU seconds per process.
       datasize
              Maximum data size (including stack) for each
       descriptors
              Maximum value for a file descriptor.
       filesize
              Largest single file allowed.
       kqueues
              Maximum number of kqueues allocated.
       maxproc
              Maximum number of processes.
       maxpthreads
              Maximum number of threads per process.
       memorylocked
              Maximum amount of memory locked in RAM.
       memoryuse
              Maximum resident set size.
       msgqueue
              Maximum  number  of  bytes  in POSIX message
       posixlocks
              Maximum number of POSIX locks per user.
       pseudoterminals
              Maximum number of pseudo-terminals.
       resident
              Maximum resident set size.
       sigpending
              Maximum number of pending signals.
       sockbufsize
              Maximum size of all socket buffers.
       stacksize
              Maximum stack size for each process.
       swapsize
              Maximum amount of swap used.
       vmemorysize
              Maximum amount of virtual memory.

       Which of these resource limits  are  available  de-
       tem.   resource can be abbreviated to any unambigu-
       can also be an integer, which  corresponds  to  the
       for the resource by the operating system.

       If argument corresponds to a number which is out of
       the  resources   configured  into  the  shell,  the
       read  or write the limit anyway, and will report an
       fails.   As  the shell  does  not  store  such  re-
       an  attempt  to  set the limit will fail unless the
-s  option  is

       present.

       limit is a number, with an optional scaling factor,

       nh     hours
       nk     kilobytes (default)
       nm     megabytes or minutes
       [mm:]ss
              minutes and seconds

       The  limit  command  is  not  made available by de-
       shell starts in a mode emulating another shell.  It
       available with the command `zmodload -F zsh/rlimits
