Like I said, I moved a bunch of sql files but instead of moving them to a directory I seem to have renamed them and put them all in the root directory as one file named "newfolder"
Can I undo this or have I royally boned myself?
If you ran
Practically, there's not a lot you can do in that situation.
Your best option is restoring from your regular backup. You can also pull new SQL dumps, or stop using the system right now and try a file undelete tool. There are plenty for NTFS and FAT, but not that many for ext filesystems. See also:
Also, when working as
Setting aliases for basic commands might bite you at some point if you're getting too used to them, but if you always want a quick reminder before doing potentially harmful stuff, that's the easiest way.