True and false (commands)
| true | |
|---|---|
| Initial release | January 1979 | 
| Operating system | Unix and Unix-like | 
| Platform | Cross-platform | 
| Type | Command | 
In Unix-like operating systems, true and false are commands whose only function is to always return with a predetermined exit status. Programmers and scripts often use the exit status of a command to assess success (exit status zero) or failure (non-zero) of the command. The true and false commands represent the logical values of command success, because true returns 0, and false returns 1.