Solve the Problems Related to the unavailability of basic centos5.6 commands

Source: Internet
Author: User

1. Recently, it was found that a server cannot use basic commands on linux, including ifconfig and vi. No matter what you enter
-Bash: vi: command not found.
2. Find the reason on the Internet. It may be because I modified the. bashrc file in the user's current directory a few days ago. This problem occurs only after I restarted it.
3. commands cannot be used, so we can use export to reset the bash environment variable.
Export PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin: /usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
4. source/etc/profile to update the variable.
5. Someone said on the Internet that the absolute path of the linux system can also be changed. If you do not perform the test, you can try it in a similar situation in the future.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.