Linux – “Command not found” for all commands in Kali

kali-linux

I'm running Kali Linux 64 bit on my computer. I keep getting the message '-bash: command not found'; doesn't matter what command I type (e.g., ifconfig or airmon-ng). Is there a way of fixing this problem?

Best Answer

Like the commenter said: Something is wrong with your Environment, possibly the PATH. Many things can cause this, but here are a few to check:

echo $PATH If it's empty, it needs to be filled, in addition to finding out why it's empty.

I remember first getting this around 15 years ago when I was first starting to learn unix-like OSes: I managed to learn the hard way the dangers of rm -rf, and I deleted my home directory. (FreeBSD 3.3, if my memory serves me right)