From LQWiki
Jump to: navigation, search

The true command has no output, and is used in shell scripting for its exit status (always 0, considered true by shells.)

Provided by

Most (all?) Linux distributions incorporate this from the GNU Coreutils: man page

Related Commands

  • false - gives exit status 1.
  • test - tests things at run-time
  • expr - evaluates an expression, result to stdout

See also

shell scripting