Solutions for Linux and vim commands unavailable after environment variables are configured in Ubuntu and Macosx
Source: Internet
Author: User
First, you must know the PAHT content in the original environment variable of your system. Ubuntu is by default: /usr/local/sbin/usr/local/bin/usr/sbin/usr/bin/sbin/bin/usr/bin/X11/usr/games/usr/X11R6/bin it's easy to know this. Execute the following operations (Blue is the command, green is the content of the document) sudocd/usr/binsudo./vi/etc first, you need to know what the PAHT content in the original environment variable of your system is.
Ubuntu is by default:
/Usr/local/sbin/usr/local/bin/usr/sbin/usr/bin/sbin/bin/usr/bin/X11/usr/games/usr/X11R6/bin
It's easy to know this.
Execute the following operations (Blue is the command, green is the content of the document)
Sudo cd/usr/bin
Sudo./vi/etc/environment
------------- Environment default file content ----------------------------------------------------------------
PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11: /usr/games"
LANG = "zh_CN.UTF-8"
LANGUAGE = "zh_CN: zh: en_US: en"
Bytes --------------------------------------------------------------------------------------------------------------
Corrected PATH = "".
Only one PATH = "" is left here, and all others are deleted.
Save the modified file and exit
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.