Categories
guides

bash Command Not Found

If you try to run a command, but bash says it can’t find it, like:

bash: mysqldump: command not found

Use locate to find the the path to the command

Add that path to the system PATH variable

locate mysqldump
export PATH=$PATH:/opt/rh/rh-mariadb102/root/usr/bin

NOTE: does not persist through logout/logon

src

By bo.

I'm @boyEatsSteak in a lot of places. I have been wanting 🍕 for weeks. I like gadgets and technology and keeping notes and tips for my future self since all I can remember is that I forget things.