This morning I was recompiling an RPM that I need to test that's built with CMake and I went to uninstall the old one which was missing some stuff. After uninstalling the old one, I went to install the new one and suddenly I'm getting "no such file or directory" for every single command I execute. So for example, I try to "ls" and get /usr/bin/ls: No such file or directory.
Through some experimenting I found that I could still change directory with cd, and when I went to /usr/bin, these binaries are still definitely there because I'm able to list the directory by using tab autocomplete, but even when I'm in that directory and do ./ls, it gives the same message.
I closed my terminals thinking it was a hosed session, but now my terminal won't launch. I tried using ssh to connect, but it refuses my password a few times before saying Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)..
I have a coworker who had a session open on my machine and he is getting the same errors when trying the same commands. He tried doing an export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin and the command completed, but it didn't change anything.
What do I do from here?