February 3, 2021 in Tutorial2 minutes
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 OPTIONTo use false command, the one and the only way us to just run the command without any option.
falseIt 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 $?
1We 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 falseTo open info page for false command we can use command below.
info falseTo open help page from false command we can run command below.
false --helpYou 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.