1ULIMIT(1P)                 POSIX Programmer's Manual                ULIMIT(1P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       ulimit — set or report file size limit
13

SYNOPSIS

15       ulimit [-f] [blocks]
16

DESCRIPTION

18       The ulimit utility shall set or  report  the  file-size  writing  limit
19       imposed on files written by the shell and its child processes (files of
20       any size may be read). Only a process with appropriate  privileges  can
21       increase the limit.
22

OPTIONS

24       The  ulimit  utility  shall  conform  to the Base Definitions volume of
25       POSIX.1‐2017, Section 12.2, Utility Syntax Guidelines.
26
27       The following option shall be supported:
28
29       -f        Set (or report, if no blocks operand is  present),  the  file
30                 size limit in blocks. The -f option shall also be the default
31                 case.
32

OPERANDS

34       The following operand shall be supported:
35
36       blocks    The number of 512-byte blocks to use as  the  new  file  size
37                 limit.
38

STDIN

40       Not used.
41

INPUT FILES

43       None.
44

ENVIRONMENT VARIABLES

46       The  following  environment  variables  shall  affect  the execution of
47       ulimit:
48
49       LANG      Provide a default value for  the  internationalization  vari‐
50                 ables  that are unset or null. (See the Base Definitions vol‐
51                 ume of POSIX.1‐2017, Section 8.2, Internationalization  Vari‐
52                 ables  for  the  precedence of internationalization variables
53                 used to determine the values of locale categories.)
54
55       LC_ALL    If set to a non-empty string value, override  the  values  of
56                 all the other internationalization variables.
57
58       LC_CTYPE  Determine  the  locale for the interpretation of sequences of
59                 bytes of text data as characters (for example, single-byte as
60                 opposed to multi-byte characters in arguments).
61
62       LC_MESSAGES
63                 Determine the locale that should be used to affect the format
64                 and contents  of  diagnostic  messages  written  to  standard
65                 error.
66
67       NLSPATH   Determine the location of message catalogs for the processing
68                 of LC_MESSAGES.
69

ASYNCHRONOUS EVENTS

71       Default.
72

STDOUT

74       The standard output shall be used when no blocks operand is present. If
75       the  current  number  of blocks is limited, the number of blocks in the
76       current limit shall be written in the following format:
77
78
79           "%d\n", <number of 512-byte blocks>
80
81       If there is no current limit on the number  of  blocks,  in