posh command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
posh: command not found
or when using sudo you get the following error message
sudo: posh: command not found
Solutions to posh: command not found
How To Fix posh: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu posh is provided by posh package.
posh is:
posh is a stripped-down version of pdksh that aims for compliance with Debian’s policy, and few extra features.
WARNING: Since many of Debian’s /bin/sh scripts are not actually policy-compliant, using posh as your /bin/sh may reveal breakage.
To fix this problem, we can install more using the command below.
sudo apt-get -y install posh
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install posh.
sudo apt -y install posh
Or if you have aptitude installed you can use the following command.
sudo aptitude install posh
Summary
In this tutorial we learn how to fix posh command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.