📌  相关文章
📜  检查命令是否存在 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:48.041000             🧑  作者: Mango

代码示例1
# To find out if a given command exists:

if command -v given-command > /dev/null 2>&1; then
  echo given-command is available
else
  echo given-command is not available
fi