TRUE(1P)
๐ TRUE(1P) ๐
okay bestie, welcome to the POSIX Programmer's Manual โ this is the TRUE(1P) page, and yes it is about a command that does literally nothing and that is iconic of it ๐
๐ธ PROLOG ๐ธ
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
fr fr, check your local page before you come for me ๐ซถ
โจ NAME โจ
true โ return true value
that's it. that's the job. return true. main character energy, zero responsibilities ๐
๐ SYNOPSIS ๐
true
no flags. no args. no notes. she simply exists โจ
๐ฆ DESCRIPTION ๐ฆ
The true utility shall return with exit code zero.
and that's the whole personality bestie. she walks in, she exits zero, she leaves ๐
๐ OPTIONS ๐
None.
not "a few". not "optional". None. not me having nothing to list ๐
๐ธ OPERANDS ๐ธ
None.
๐ STDIN ๐
Not used.
๐ INPUT FILES ๐
None.
๐ ENVIRONMENT VARIABLES ๐
None.
โญ ASYNCHRONOUS EVENTS โญ
Default.
๐ STDOUT ๐
Not used.
๐ STDERR ๐
Not used.
๐ OUTPUT FILES ๐
None.
๐ง EXTENDED DESCRIPTION ๐ง
None.
๐ฅ EXIT STATUS ๐ฅ
Zero.
yes queen, zero, always zero, that's the whole point ๐
๐ CONSEQUENCES OF ERRORS ๐
None.
The following sections are informative.
๐ APPLICATION USAGE ๐
This utility is typically used in shell scripts, as shown in the EXAMPLES section. The special built-in utility : is sometimes more efficient than true.
so like, if you're being a little performance gremlin, : might be your girl, but true is right there and she's readable ๐ซถ
๐ EXAMPLES ๐
This command is executed forever:
while true
do
command
done
forever. FOREVER bestie. do not run this and then be surprised when it does not stop ๐ญ that's the point of it, that's the assignment ๐
๐ง RATIONALE ๐ง
The true utility has been retained in this volume of POSIX.1โ2017, even though the shell special built-in : provides similar functionality, because true is widely used in historical scripts and is less cryptic to novice script readers.
ngl that's so valid of them. keeping the readable one around for the girlies who are new here ๐ธ
๐ฎ FUTURE DIRECTIONS ๐ฎ
None.
๐ SEE ALSO ๐
Section 2.9, Shell Commands, false
(her evil twin. or her mirror. or honestly just her with a different exit code, slay ๐)
๐ COPYRIGHT ๐
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page bestie โ brought to you by IEEE/The Open Group, 2017, on the TRUE(1P) page ๐โจ thanks for reading, exit zero on your way out ๐
๐ฆ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 ยท custom
- alpine 3.23: man-pages-posix 2017a-r0 ยท custom
- alpine 3.24: man-pages-posix 2017a-r0 ยท custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 ยท SUSE-IEEE
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms