kali linux bash: command not found

木子李CSDN 2020-05-18

今天新装的kali linux,然后发现好多系统最基础的命令,都报错。

有时候新装的系统中没有设置环境变量。
执行最基本的命令:

:~$ iwconfig
bash: iwconfig: command not found

明显是环境变量 PATH 出了问题。
/bin:
bin 为 binary 的简写主要放置一些系统的必备执行档例如:cat、 cp、 chmod df、 dmesg、 gzip、
kill、 ls、 mkdir、 more、 mount、 rm、 su、 tar 等。
/usr/bin:
主要放置一些应用软体工具的必备执行档例如 c++、 g++、 gcc、 chdrv、 diff、 dig、 du、 eject、
elm、 free、 gnome、 gzip、 htpasswd、 kfm、 ktop、 last、 less、 locale、 m4、 make、 man、
mcopy、 ncftp、 newaliases、 nslookup passwd、 quota、 smb
、 wget 等。
/sbin:
主要放置一些系统管理的必备程式例如:cfdisk、 dhcpcd、 dump、 e2fsck、 fdisk、 halt、 ifconfig、
ifup、 ifdown、 init、 insmod、 lilo、 lsmod、 mke2fs、 modprobe、 quotacheck、 reboot、 rmmod、
runlevel、 shutdown 等。
/usr/sbin:
放置一些网路管理的必备程式例如:dhcpd、 httpd、 imap、 in.*d、 inetd、 lpd、 named、 netconfig、
nmbd、 samba、 sendmail、 squid、 swap、 tcpd、 tcpdump 等。
所以现在你要用 ls 命令需要这么执行
[]# /bin/ls - a
[]# /bin/vim .bash_profile
重新还原环境变量, 重启。

相关推荐