Linux false Command
Posted on February 3, 2021 (Last modified on July 14, 2022) • 2 min read • 290 wordsIn this tutorial we learn how to use false command in Linux. false command is a command that do nothing, unsuccessfully.
In this tutorial we learn how to use false command in Linux. false is a command that do nothing, unsuccessfully. This command provide no output at all and will only give us false or failed exit status.
false [ignored command line arguments]
false OPTION
To use false command, the one and the only way us to just run the command without any option.
$ false
It will give us nothing. If we check the exit status of the command we just run, it will give us exit status 1
which is a general exit status
$ echo $?
1
We can use man
and info
command to see the manual page of false command.
false command also have
--help
option to show list of options.
To open man page for false command we can use command below. To exit man or info page you can press q
.
$ man false
To open info page for false command we can use command below.
$ info false
To open help page from false command we can run command below.
$ false --help
You can find false command source code from the folowing repositories:
You can read tutorials of related Linux commands below:
In this tutorial we learn how to use false in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.