false (Unix)

from Wikipedia, the free encyclopedia

false ( /bin/false) is a tool in Unix and Unix-like systems. Its behavior is specified by the POSIX standard.

The program provides in the execution of the return value of 1, which by convention of Unix programs ( shells or their branching constructs: if, whileetc., /bin/testand the like.) As a logical false or wrong is interpreted. stdoutremains empty. Its other behavior corresponds to that of other command line programs.

In some shells is falseas built-in to the otherwise necessary additional run fork () to spare.

Setting the login shell to /bin/falsethe file /etc/passwdis that a common method login of the user in an interactive shell to stop, but doing the use of other services, such as ftp , to continue to permit.

See also

Web links

Individual evidence

  1. ^ The Open Group Base Specifications Issue 7, 2018 edition; IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008)