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

false — Returns a non-zero exit code. See also: `true`. More information: <https://www.gnu.org/software/bash

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

Problem

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

Solution

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

Return a non-zero exit code:
false


Make a command always exit with 1:
{{command}} && false

Code Snippets

Return a non-zero exit code

false

Make a command always exit with 1

{{command}} && false

Context

tldr-pages: common/false

Revisions (0)

No revisions yet.