Vi,ls, these commands are not available. What should I do?
1, enter on the command line
Export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
This ensures that command-line commands are temporarily available. Do not close the terminal after the command has been executed.
Or execute the vi command under cd / usr/bin
two。 Restore bash_profile Fil
Vi / .bash_profile
It is likely that your PATH environment variable is misset, for example, $PATH is missing
PATH=$PATH:$PATH14. Effective immediately, source ~ / .bash_profile
Withdraw the operation just now