This tutorial explains Linux “false” command, options and its usage with examples.
false – do nothing, unsuccessfully.
DESCRIPTION
Exit with a status code indicating failure. false returns 1.
SYNOPSIS
false
advertisement
advertisement
EXAMPLE
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.)
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.
advertisement
Related Posts:
- Apply for Programming Internship
- Practice Programming MCQs
- Check Linux Books
- Check Information Technology Books