Terminal Errors When Using 'defaults' I am trying to use 


  defaults write com.apple.Finder AppleShowAllFiles YES


in my terminal but when I do I get the following error:


  -bash: defaults: command not found


Any ideas as to what may be causing this issue and how to resolve it?
Turns out my .bash_profile got corrupted. I went in via text edit and modified it to revert it to the default settings and all is well again