This tutorial explains Linux “false” command, options and its usage with examples.
false – do nothing, unsuccessfully.
Exit with a status code indicating failure. false returns 1.
Subscribe Now: Linux Commands Newsletter | Important Subjects Newsletters
The command can be used to ignore the success or failure of a sequence of other commands, as in the example:
$ make … && false
Setting a user’s login shell to false, in /etc/passwd, effectively denies them access to an interactive shell, but their account may still be valid for other services, such as FTP. (Although /sbin/nologin, if available, may be more fitting for this purpose, as it prints a notification before terminating the session.)
Check this: Information Technology Books | Programming MCQs
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.
If you wish to look at all Linux commands and their usage examples, go to Linux Commands Tutorial.
- Practice Programming MCQs
- Buy Information Technology Books
- Apply for Linux Internship
- Buy Linux Books
- Apply for Programming Internship