In Linux, the profile file is modified incorrectly. how can this problem be solved?
Source: Internet
Author: User
In Linux, the profile file is changed incorrectly. when the profile is changed in the restoration method, a problem occurs. commands other than cd cannot be used, and even vi cannot be used, after checking the internet, www.2cto.com uses exportPATH/usr/bin:/usr/sbin:/bin:/sbin:/usr/X...
In Linux, the profile file is modified incorrectly. when the profile is changed in the restoration method, the file cannot be used for commands other than cd,
I cannot even use vi. I checked it online and used export PATH =/usr/bin:/usr/sbin:/bin:/usr/X11R6/bin for www.2cto.com,
Then you can use the command to change the profile back with vi and restore it to normal. Shell commands are basically defined in/usr/bin,/usr/sbin,/bin,/sbin,/usr/X11R6/bin. Therefore, you can use these commands again, which is a remedy.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service