Default Value of PATH in Linux environment variable

Source: Internet
Author: User

After modifying the PATH value in the/etc/profile file of RedHat Enterprise 5.7 today, run source/etc/profile, then all the commands, such as su, sudo, vi, gedit, find, and source, cannot be executed, and the prompt "xxx: command not found" is displayed ", later I thought it was caused by modifying the PATH value of the environment variable in/etc/profile, so I searched for it on the Internet and marked it to leave it for backup:

Export PATH =/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

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.