March 4, 2021 in Troubleshooting2 minutes
![su: command not found [How To Fix]](/command-not-found/su-command-not-found.png)
When you run su command in linux terminal / console, you get the following error message
su: command not foundTo fix this problem, we can install su using the command below.
sudo apt-get -y install util-linuxThis command might take some time to finish depending on your machine internet connection.
You can also use apt command to install util-linux.
sudo apt -y install util-linuxOr if you have aptitude installed you can use the following command.
sudo aptitude install util-linuxIn Alpine Linux, we can install su using the command below.
apk add util-linuxIn Arch Linux, to fix this error message, we can install su using the command below.
pacman -S util-linuxIn CentOS or other RHEL based Linux distribution, we can install su using the command below.
yum install util-linuxIn Fedora we can use dnf command to install su using the command below.
dnf install util-linuxTo fix this problem, we can install su using the command below.
brew install util-linux