false 命令详解

| 选择喜欢的代码风格  

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

false 命令安装:


-bash/zsh: false: command not found

# Windows (WSL2)
sudo apt-get update sudo apt-get install coreutils

# Debian
apt-get install coreutils

# Ubuntu
apt-get install coreutils

# Alpine
apk add coreutils

# Arch Linux
pacman -S coreutils

# Kali Linux
apt-get install coreutils

# CentOS
yum install coreutils

# Fedora
dnf install coreutils

# OS X
brew install coreutils

# Raspbian
apt-get install coreutils

# Dockerfile
dockerfile.run/false

# Docker
docker run cmd.cat/false false

false 命令补充说明:


false 命令用于和其他命令进行逻辑运算,总返回失败,值为 1,该命令是 bash 内建命令,相关的帮助信息请查看 help 命令。

false 命令语法:


false [ignored command line arguments]
false OPTION

false 命令选项:


--help
  display this help and exit

--version
  output version information and exit

false 命令实例:


false 返回非 0 Exit code:

false

false 扩展阅读:




false 命令评论