true

Returns a successful exit status code of 0. Use this with the || operator to make a command always exit with 0. More information: <https://www.gnu.org/software/coreutils/true>.

Install

All systems
curl cmd.cat/true.sh
Debian Debian
apt-get install coreutils
Ubuntu
apt-get install coreutils
Alpine
apk add coreutils
Arch Arch Linux
pacman -S coreutils
image/svg+xml Kali Linux
apt-get install coreutils
CentOS
yum install coreutils
Fedora
dnf install coreutils
Windows (WSL2)
sudo apt-get update sudo apt-get install coreutils
OS X
brew install coreutils
Raspbian
apt-get install coreutils
Docker
docker run cmd.cat/true true powered by Commando

Returns a successful exit status code of 0. Use this with the || operator to make a command always exit with 0. More information: <https://www.gnu.org/software/coreutils/true>.

  • Return a successful exit code:
    true

© tl;dr; authors and contributors