Problems With Terminal (/usr/bin) I'm experimenting around with my computer and I realized that all the commands in the terminal that aren't bash builtins were stored in the /usr/bin. So I wanted to see (to confirm my realization) that they would not work in Terminal if they weren't there. So I copied bin to my desktop and deleted bin in usr. Sure enough, I was right. All the builtins still worked but things like 'say' didn't. Feeling content with myself for figuring out something about my computer, I promptly placed bin back in usr and check to see if 'say' was working to confirm no harm was done. It worked. Then some time later I need to use sudo for something and I get an error. I restarted my computer, hoping that would help. Now I can't even use Terminal anymore. When I boot it up it says:

Last login: Fri Jul 25 01:12:20 on console
login(529,0x7fff744b4310) malloc: *** error for object 0x7fcfa3600e20: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

[Process completed]


Uh-oh, so how do I fix this? The only thing my non-educated brain can think of is a reinstall of OS X.
I figured it out by searching it myself (sorry for not thinking of that first). You just go to the disk utility and click 'Repair Disk Permissions'.