“ -bash:sudo:未找到命令”对于Linux,Debian,CentOS的错误和解决方案

sudo  command is used to execute command as another user. This is generally used to run command as root. In some cases we can get an error like -bash:sudo:command not found which means sudo is not installed. In this tutorial we will look different ways and distributions to solve this problem.

sudo命令用于以另一个用户身份执行命令。 通常用于以root身份运行命令。 在某些情况下,我们会收到-bash:sudo:command not found类的错误,这意味着未安装sudo 。 在本教程中,我们将探讨解决此问题的不同方式和分布。

为Debian,Ubuntu,Mint,Kali安装Sudo (Install Sudo For Debian, Ubuntu, Mint, Kali)

We can install sudo for Debian, Ubuntu, Mint and Kali related distributions for deb or apt with the following command. But before we should be root user because package installation requires root privileges.

我们可以安装sudo适用于Debian,Ubuntu的,薄荷和卡利相关发行debapt使用下面的命令。 但是在我们应该是root用户之前,因为软件包安装需要root特权。

$ su
$ apt install sudo

为CentOS,Fedora,RHEL安装Sudo (Install Sudo For CentOS, Fedora, RHEL)

We can install sudo for CentOS, Fedora and RHEL related distributions for rpm or yum with the following command. But before we should be root user because package installation requires root privileges.

我们可以使用以下命令为rpm或yum安装与CentOS,Fedora和RHEL相关的发行版的sudo 。 但是在我们应该成为root用户之前,因为软件包安装需要<

你可能感兴趣的:(linux,css,centos,ubuntu,debian)