TIDE
Languages

Bash

Installing and using Bash on Ubuntu in TIDE

Bash

Bash (Bourne Again SHell) is the default Unix shell and command language for Linux systems. It is essential for scripting, automation, and command-line system administration.

Installation

Bash comes pre-installed on Ubuntu. To ensure you have the latest updates, run:

apt update
apt install -y bash

Verification

Check your active shell and version:

bash --version

Hello World Example

Create an executable Bash script named hello.sh:

cat << 'EOF' > hello.sh
#!/bin/bash
echo "Hello, Bash!"
EOF

Make the script executable:

chmod +x hello.sh

Run the script:

./hello.sh

Or pass it directly to the interpreter:

bash hello.sh

Official Resources

On this page