Scroll to navigation

true(1) General Commands Manual true(1)

NAME

true - Returns true, a successful exit status.

Immediately returns with the exit status 0, except when invoked with one of the recognized options. In those cases it will try to write the help or version text. Any IO error during this operation causes the program to return 1 instead.

SYNOPSIS

true [--help] [--version]

DESCRIPTION

Returns true, a successful exit status.

Immediately returns with the exit status 0, except when invoked with one of the recognized options. In those cases it will try to write the help or version text. Any IO error during this operation causes the program to return 1 instead.

OPTIONS

Print help information
Print version information

VERSION

v(uutils coreutils) 0.7.0

EXAMPLES

Return a successful exit code:

true

Make a command always exit with 0:

command || true

The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.

true (uutils coreutils) 0.7.0