How to Update Bash in Ubuntu Server with apt-get command

We can update bash on Ubuntu Server using the apt-get command. To Upgrade bash, open the Linux terminal and execute the following Command.

sudo apt-get install --only-upgrade bash

This will update the Ubuntu bash shell to the newest version. You can check the ubuntu bash version using the bash --version command.

bash --version

This will print the current bash version you are using on your Ubuntu Server.

submit to reddit