> For the complete documentation index, see [llms.txt](https://kermitcloud.gitbook.io/kermitcloud-hosting-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kermitcloud.gitbook.io/kermitcloud-hosting-wiki/vps-servers/how-to-install-bash.md).

# How To Install Bash

Installing Bash on a Virtual Private Server (VPS) can vary slightly depending on your server's operating system, but I'll provide a general guide for Linux-based systems, which are most common for VPS. Here's how you can proceed:

#### 1. **Access Your VPS**

* Use SSH to connect to your VPS from your local machine. Replace `<IP>` with your server's IP address:

  bash

  ```
  ssh username@<IP>
  ```

#### 2. **Update the Package Manager**

* Ensure your system's package lists are up-to-date:

  bash

  ```
  sudo apt update && sudo apt upgrade -y
  ```
* For CentOS or Fedora-based systems, use:

  bash

  ```
  sudo yum update -y
  ```

#### 3. **Install Bash**

* For most Linux distributions, Bash should already be installed. If it's not, you can install it using:

  bash

  ```
  sudo apt install bash -y
  ```
* On CentOS/Fedora-based systems:

  bash

  ```
  sudo yum install bash -y
  ```

#### 4. **Set Bash as the Default Shell (Optional)**

* If you want to make Bash the default shell, use:

  bash

  ```
  chsh -s /bin/bash
  ```
* You may need to log out and back in for the change to take effect.

#### 5. **Verify the Installation**

* Check the version of Bash installed to confirm:

  bash

  ```
  bash --version
  ```

If your VPS uses a different operating system (e.g., Windows), you may need to follow a different method, such as installing a Bash emulator or subsystem (like WSL for Windows).
