I know what you did.
I don't know how to fix it. It depends on what was in your path.
You overwrote your path instead of adding to it.
This is a month old, so your well past this now -- hopefully. Restoring your path could take a little. You'll need to know where everything is to "run" anything except what you just installed. add /bin back pretty quick and that will solve your "ls" problem.
I am wondering, did you shut this off before you figured it out? What happened? Did it boot? I am suspecting you had a lot of errors.
good luck and I hope you are actually past this.