logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

ulimit.1p (4901B)


  1. '\" et
  2. .TH ULIMIT "1P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. ulimit
  12. \(em set or report file size limit
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. ulimit \fB[\fR-f\fB] [\fIblocks\fB]\fR
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR ulimit
  21. utility shall set or report the file-size writing limit imposed on
  22. files written by the shell and its child processes (files of any size
  23. may be read). Only a process with appropriate privileges can increase
  24. the limit.
  25. .SH OPTIONS
  26. The
  27. .IR ulimit
  28. utility shall conform to the Base Definitions volume of POSIX.1\(hy2017,
  29. .IR "Section 12.2" ", " "Utility Syntax Guidelines".
  30. .P
  31. The following option shall be supported:
  32. .IP "\fB\-f\fP" 10
  33. Set (or report, if no
  34. .IR blocks
  35. operand is present), the file size limit in blocks. The
  36. .BR \-f
  37. option shall also be the default case.
  38. .SH OPERANDS
  39. The following operand shall be supported:
  40. .IP "\fIblocks\fR" 10
  41. The number of 512-byte blocks to use as the new file size limit.
  42. .SH STDIN
  43. Not used.
  44. .SH "INPUT FILES"
  45. None.
  46. .SH "ENVIRONMENT VARIABLES"
  47. The following environment variables shall affect the execution of
  48. .IR ulimit :
  49. .IP "\fILANG\fP" 10
  50. Provide a default value for the internationalization variables that are
  51. unset or null. (See the Base Definitions volume of POSIX.1\(hy2017,
  52. .IR "Section 8.2" ", " "Internationalization Variables"
  53. for the precedence of internationalization variables used to determine
  54. the values of locale categories.)
  55. .IP "\fILC_ALL\fP" 10
  56. If set to a non-empty string value, override the values of all the
  57. other internationalization variables.
  58. .IP "\fILC_CTYPE\fP" 10
  59. Determine the locale for the interpretation of sequences of bytes of
  60. text data as characters (for example, single-byte as opposed to
  61. multi-byte characters in arguments).
  62. .IP "\fILC_MESSAGES\fP" 10
  63. .br
  64. Determine the locale that should be used to affect the format and
  65. contents of diagnostic messages written to standard error.
  66. .IP "\fINLSPATH\fP" 10
  67. Determine the location of message catalogs for the processing of
  68. .IR LC_MESSAGES .
  69. .SH "ASYNCHRONOUS EVENTS"
  70. Default.
  71. .SH STDOUT
  72. The standard output shall be used when no
  73. .IR blocks
  74. operand is present. If the current number of blocks is limited, the
  75. number of blocks in the current limit shall be written in the following
  76. format:
  77. .sp
  78. .RS 4
  79. .nf
  80. "%d\en", <\fInumber of 512-byte blocks\fR>
  81. .fi
  82. .P
  83. .RE
  84. .P
  85. If there is no current limit on the number of blocks, in the POSIX
  86. locale the following format shall be used:
  87. .sp
  88. .RS 4
  89. .nf
  90. "unlimited\en"
  91. .fi
  92. .P
  93. .RE
  94. .SH STDERR
  95. The standard error shall be used only for diagnostic messages.
  96. .SH "OUTPUT FILES"
  97. None.
  98. .SH "EXTENDED DESCRIPTION"
  99. None.
  100. .SH "EXIT STATUS"
  101. The following exit values shall be returned:
  102. .IP "\00" 6
  103. Successful completion.
  104. .IP >0 6
  105. A request for a higher limit was rejected or an error occurred.
  106. .SH "CONSEQUENCES OF ERRORS"
  107. Default.
  108. .LP
  109. .IR "The following sections are informative."
  110. .SH "APPLICATION USAGE"
  111. Since
  112. .IR ulimit
  113. affects the current shell execution environment, it is always provided
  114. as a shell regular built-in. If it is called in a separate utility
  115. execution environment, such as one of the following:
  116. .sp
  117. .RS 4
  118. .nf
  119. nohup ulimit -f 10000
  120. env ulimit 10000
  121. .fi
  122. .P
  123. .RE
  124. .P
  125. it does not affect the file size limit of the caller's environment.
  126. .P
  127. Once a limit has been decreased by a process, it cannot be increased
  128. (unless appropriate privileges are involved), even back to the original
  129. system limit.
  130. .SH EXAMPLES
  131. Set the file size limit to 51\|200 bytes:
  132. .sp
  133. .RS 4
  134. .nf
  135. ulimit -f 100
  136. .fi
  137. .P
  138. .RE
  139. .SH RATIONALE
  140. None.
  141. .SH "FUTURE DIRECTIONS"
  142. None.
  143. .SH "SEE ALSO"
  144. The Base Definitions volume of POSIX.1\(hy2017,
  145. .IR "Chapter 8" ", " "Environment Variables",
  146. .IR "Section 12.2" ", " "Utility Syntax Guidelines"
  147. .P
  148. The System Interfaces volume of POSIX.1\(hy2017,
  149. .IR "\fIulimit\fR\^(\|)"
  150. .\"
  151. .SH COPYRIGHT
  152. Portions of this text are reprinted and reproduced in electronic form
  153. from IEEE Std 1003.1-2017, Standard for Information Technology
  154. -- Portable Operating System Interface (POSIX), The Open Group Base
  155. Specifications Issue 7, 2018 Edition,
  156. Copyright (C) 2018 by the Institute of
  157. Electrical and Electronics Engineers, Inc and The Open Group.
  158. In the event of any discrepancy between this version and the original IEEE and
  159. The Open Group Standard, the original IEEE and The Open Group Standard
  160. is the referee document. The original Standard can be obtained online at
  161. http://www.opengroup.org/unix/online.html .
  162. .PP
  163. Any typographical or formatting errors that appear
  164. in this page are most likely
  165. to have been introduced during the conversion of the source files to
  166. man page format. To report such errors, see
  167. https://www.kernel.org/doc/man-pages/reporting_bugs.html .