在debian(Kali Linux)上安装NetTools后,基本的网络命令无法工作

在debian(Kali Linux)上安装NetTools后,基本的网络命令无法工作,linux,networking,debian,Linux,Networking,Debian,Kali say的网络工具已经安装,但仍然是基本的网络命令,如 命令 iwconfig arp 你不工作了 freduah@freduah:~$ sudo apt-get install net-tools Reading package lists... Done Building dependency tree Reading state information... Done net-tools is already the newest version (1.60+git2

Kali say的网络工具已经安装,但仍然是基本的网络命令,如 命令 iwconfig arp 你不工作了

freduah@freduah:~$ sudo apt-get install net-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
net-tools is already the newest version (1.60+git20180626.aebd88e-1).
The following packages were automatically installed and are no longer required:
  libpython3.7-minimal libpython3.7-stdlib libx265-179 python3.7 python3.7-minimal ruby-did-you-mean
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 445 not upgraded.
freduah@freduah:~$ ifconfig
bash: ifconfig: command not found
freduah@freduah:~$ iwconfig
bash: iwconfig: command not found
freduah@freduah:~$ 

检查
ls/sbin/ifconfig
如果存在,将/sbin添加到$PATH或使用
sudo ifconfig

谢谢您的回答。我试过sudo[命令名],结果成功了。如何将其添加到路径??path=/sbin:$path可以,但在大多数情况下,最好使用sudo而不是将sbin添加到路径,除非没有任何敏感信息。