Go to main content

man pages section 1: User Commands

Exit Print View

Updated: July 2017
 
 

true(1)

Name

true, false - provide truth values

Synopsis

true 
false 

Description

The true utility does nothing, successfully. The false utility does nothing, unsuccessfully. They are typically used in a shell script sh as:

while true
do
            command
done

which executes command forever.

Exit Status

true has exit status 0.

false always will exit with a non-zero value.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
Committed
Standard

See Also

sh(1), attributes(5), standards(5)