Linux false Command

What is false Command in Linux?

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 command Syntax

false [ignored command line arguments]
false OPTION

false Command Example

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

false Command Manual / Help

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

Linux false Command Source Code

You can find false command source code from the folowing repositories:

You can read tutorials of related Linux commands below:

Summary

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.

1 thought on “Linux false Command”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.