On a Linux system, what is /bin/true? What is it used for?
On a Linux system, what is /bin/true ? What is it used for?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
/bin/trueis a command that returns 0 (a truth value in the shell).Its purpose is to use in places in a shell script where you would normally use a literal such as “true” in a programming language, but where the shell will only take a command to run.
/bin/falseis the opposite that returns non-zero (a false value in the shell).