"Linux". Bash_profile

Source: Internet
Author: User

I. Ordinary users
If some programs are not installed in the system default path (ie/bin/,/usr/bin,/usr/local/bin/), this time ordinary users want to invoke these commands, must set the path. The method is simple: Log in as a normal user and then enter

VI ~/.bash_profile

The following content will appear:
#. Bash_profile

# Get the aliases and functions
If [-f ~/.BASHRC]; Then
. ~/.bashrc
Fi

# User specific environment and startup programs

Export PATH
At this point, just add your own path in front of the export path, for example my modifications are as follows:

[Yyc@localhost bin]$ cat ~/.bash_profile
#. Bash_profile
# Get The aliases and functions
if [-f ~/.BASHRC]; Then
       . ~/.BASHRC
fi
# User specific environment and startup programs
path= $PATH:/usr/local/programs/crosstool/gcc-4.0.2-glibc-2.3.6/arm-linux-gnu/bin/
Export PATH



"Linux". Bash_profile

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.