Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

true - return true value

&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)