Session and utilities
The false command
Does nothing and exits with an error (code 1). The complement of true.
Syntax
falseCopy-ready examples
$ false || echo falloDetect the failureYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Although it prints nothing, its non-zero exit code can break a chain with &&.
FAQ
How do I see its result?
With echo $? right after.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course