HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

true — Returns a successful exit status code of 0. See also: `false`. More information: <https://www.gnu.or

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandexitreturnssuccessfulstatusclicodetrue

Problem

How to use the true command: Returns a successful exit status code of 0. See also: false. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-true>.

Solution

true — Returns a successful exit status code of 0. See also: false. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-true>.

Return a successful exit code:
true


Make a command always exit with 0:
{{command}} || true

Code Snippets

Return a successful exit code

true

Make a command always exit with 0

{{command}} || true

Context

tldr-pages: common/true

Revisions (0)

No revisions yet.