/bin/true 是什么? [英] What is /bin/true?
本文介绍了/bin/true 是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Linux 系统上,/bin/true
是什么?它是干什么用的?
On a Linux system, what is /bin/true
? What is it used for?
推荐答案
/bin/true
是返回0(shell中的真值)的命令.
/bin/true
is a command that returns 0 (a truth value in the shell).
它的目的是在 shell 脚本中的一些地方使用,你通常会在编程语言中使用诸如true"之类的文字,但 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/false
与返回非零(shell 中的假值)相反.
/bin/false
is the opposite that returns non-zero (a false value in the shell).
这篇关于/bin/true 是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文