Slackware

Slackware
A true linux-distro

Friday, June 28, 2013

Post 12 : Slackware / Command Not Found

I had a very simple problem a while ago. I wasn't able to use locate, updatedb, grep, vim, or any other command I tried. When I entered locate, I would get a locate: command not found message.

The problem was due to an incorrect ~/.bashrc file. I had exported a non-existent path in the evening yesterday. So, at startup, all the commands that are loaded to operate in the GUI mode failed. Luckily, I was able to run the failing commands in the TTY screens. If you face a similar problem, be sure to correct your .bashrc or which ever file you edited the last time you logged in.