Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Vi,ls, these commands are not available. What should I do?

Shulou Source: shulou.com Published: 2022-06-03 08:07:08 11月23日 Update

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

Tags: Commands variables files environment terminals errors guarantees inputs what to do Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Docker vpn MariaDB macOS