Arch Linux sudo: command not found
First, you need to install the sudo
package to use sudo
:
pacman -S sudo
After that, you need to edit the sudoers
file and add your username to it.
Admin
Updated on June 14, 2022Comments
-
Admin almost 2 years
I recently installed Arch Linux on my Raspberry Pi and, after logging in as root and creating myself a user account I tried to use the sudo command. This was the result:
[phillipus@alarmpi home]$ sudo mkdir Public bash: sudo: command not found
After searching for the problem, I logged in as
root
and executedpacman -S sudo
. This was followed by a long output and a confirmation of installation. Following this, I retried to usesudo
both asroot
and as my user, both times getting the same response. Following another solution to the problem, I tried to add myself to/etc/sudoers
, only to find out that it didn't exist.I am not very experienced with Linux, so could you please try to explain your responses fully?