PATH
environment variable. The type of errors you have, indicates that PATH
does not contain /bin
, where the above commands (including bash
) reside..bash_profile
, I realized after commenting out and tryig things that nothing worked. I changed my saves to OS X format (CR only) and voilà! No more 'command not found' in the terminal!.bash_profile
.touch ~/.bash_profile
and press Enter. That fixed my problems. Hope it does the same for youls
, vi/vim
, ..) and can't edit /root/.bashrc
when I log in with su
into root. ~/.bashrc
and change the ends of lines in Krusader to unix style. And its working already!!! :-).bash_profile
.And I want to change it back but now I can't, because I lost all the commands, especially the nano command and the vim command, so I can't open the .bash_profile with command. And the .bash_profile
is a hidden file I can't open it with the Finder.File -> Open
, choose <yourusername>
folder, and then, all hidden files is showing on the Atom's tree view, include the .bash_profile
!!After I removed the last modification and reopen the Terminal, all commands came back! :)