linux sudo命令工具安装

本文档详细介绍了如何在基于Debian、Ubuntu、Mint、Kali、CentOS、Fedora和RHEL的Linux系统上安装sudo命令。首先,需要以root权限运行安装命令,如使用`apt`或`yum`。对于sudoers配置文件,系统通常会自动将用户添加,但也可手动添加,例如允许用户'ismail'全权运行sudo。此外,使用sudo命令可以切换到其他用户,如'ali'。
摘要由CSDN通过智能技术生成

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的,薄荷和卡利相关发行deb或apt使用下面的命令。 但是在我们应该是root用户之前,因为软件包安装需要root特权。

$ su
$ apt install sudo

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

我笔记

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值