Debian 自用手册

Debian 添加当前用户为 sudoers

执行 sudo 命令时提示 用户名 is not in the sudoers file. This incident will be reported.

终端内输入 su 再输入密码进入 root 权限,再输入以下命令即可。

echo "用户名 ALL=(ALL) ALL" >> /etc/sudoers

Debian 找回 ifconfig 命令

升级系统并安装 net-tools
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install net-tools
查找 ifconfig 所在的位置
whereis ifconfig
得到位置
ifconfig: /usr/sbin/ifconfig /usr/share/man/man8/ifconfig.8.gz
链接 ifconfig 位置
alias ifconfig='/sbin/ifconfig'

相关链接:

https://www.debian.org/doc/manuals/debian-reference/ch01.zh-cn.html

如果觉得本文对你有帮助,可以鼓励我创作🍻

🧋请我喝杯奶茶吧🧋

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注