bash

Bourne-Again SHell, an sh-compatible command-line interpreter. See also: zsh, histexpand (history expansion). More information: <https://www.gnu.org/software/bash/>.

Install

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

Bourne-Again SHell, an sh-compatible command-line interpreter. See also: zsh, histexpand (history expansion). More information: <https://www.gnu.org/software/bash/>.

  • Start an interactive shell session:
    bash
  • Start an interactive shell session without loading startup configs:
    bash --norc
  • Execute specific [c]ommands:
    bash -c "echo 'bash is executed'"
  • Execute a specific script:
    bash path/to/script.sh
  • Execute a specific script while printing each command before executing it:
    bash -x path/to/script.sh
  • Execute a specific script and stop at the first [e]rror:
    bash -e path/to/script.sh
  • Execute specific commands from `stdin`:
    echo "echo 'bash is executed'" | bash
  • Start a [r]estricted shell session:
    bash -r

© tl;dr; authors and contributors