Loading...
Select Version
&pagelevel(4)&pagelevel
The true command simply returns a zero exit status and does nothing else.
You can use true in shell scripts to generate the condition true.
You can use the companion command false to generate the condition false (non-zero exit status).
Syntax
true |
Exit status
0 |
Example
The following shell script initiates an endless loop which you can terminate by pressing CTRL+C: while true do . . . done |
See also
false, : (colon) |