未找到 iwconfig,但已安装无线工具

Tri*_*tan 9 wifi debian

我想使用 iwconfig。

无线工具的安装:

tristan@debian:~$ sudo apt install wireless-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
wireless-tools is already the newest version.
Run Code Online (Sandbox Code Playgroud)

当我尝试运行 iwconfig 时:

tristan@debian:~$ iwconfig
bash: iwconfig: command not found
Run Code Online (Sandbox Code Playgroud)

如您所见,我无法使用 iwconfig。

GAD*_*D3R 10

iwconfig以 root 身份运行:

 su -c "iwconfig"
Run Code Online (Sandbox Code Playgroud)

或者授予管理权限user然后运行:

sudo iwconfig
Run Code Online (Sandbox Code Playgroud)

对于非特权用户,您可以在将以iwconfig 下行添加到您的 后运行.bashrc

export PATH="$PATH:/sbin"
Run Code Online (Sandbox Code Playgroud)

更新:

在 debian Busteriwconfig/usr/sbin,您可以添加/usr/sbin到您的 PATH。

将以下行添加到您的 /etc/environment

PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/sbin:/usr/local/sbin:/sbin"
Run Code Online (Sandbox Code Playgroud)

然后 :

source /etc/environment
Run Code Online (Sandbox Code Playgroud)


小智 9

尝试重新安装无线工具:

 sudo apt-get install --reinstall wireless-tools
Run Code Online (Sandbox Code Playgroud)


Hen*_*ity 5

您需要root使用iwconfig