Home > OS >  For help, Linux, sudo -i executing sudo: after the/etc/sh: couldn't find a command
For help, Linux, sudo -i executing sudo: after the/etc/sh: couldn't find a command

Time:09-17

As title, Linux, sudo -i executing sudo: after the/etc/sh: couldn't find a command,

CodePudding user response:

Hope bosses, please help me

CodePudding user response:

Sudo -i - do you want into the root?
In fact it is not necessary, you directly before each lose command sudo can
I didn't met you this problem

CodePudding user response:

refer to the second floor EricNTH response:
sudo -i, do you want to root?
In fact it is not necessary, you directly before each lose command sudo can
You haven't encountered this problem I
thank my problem is the command sudo su related a executive complains, o (╥ man ╥) o

CodePudding user response:

Su root
Apt install sudo or yum install sudo

CodePudding user response:

Ray @ NANOCORE reference 4 floor response:
su root
Apt install sudo or yum install sudo


Thank you for your help, but su with sudo switch to root will report the error, as follows:

CodePudding user response:

Quote this mistake, because you did not install su related command or not to put it in the configuration environment, so every time when using this command will be an error, if not installed as the 4th floor said to install, installation check to have added to the environment variables,

CodePudding user response:

refer to 6th floor heart maple leaf red reply:
this mistake, because you did not install the su related commands or not to put it in the configuration environment, so every time when using this command will be an error, if not installed as the 4th floor said to installation, the installation check to have added to the environment variables to,

Thank you, but in less than the root user, all kinds of switch to the root of the command su, sudo will be submitted to the above error,