Python environment variable user-level configuration

Source: Internet
Author: User

1. System level: (generally requires root privileges)
(1)/etc/profile: This file is the first file that is used when the user logs on, the operating system customizes the user environment, and applies to every user who logs on to the system. This file is typically called the/ETC/BASH.BASHRC file.

2. User level (these files are in the home directory):
(1) ~/.profile: Each user can use this file to enter the shell information dedicated to their own use, when the user log on, the file is only executed once! By default, he sets some environment variables to execute the user's. bashrc file. This is where personal settings are recommended.
(2) ~/.BASHRC: This file contains bash information dedicated to your bash shell, which is read when you log in and every time you open a new shell. It is not recommended to put here becauseeach time a shell is opened, this file is read once, the efficiency certainly has the influence. (Use this)

#. BASHRC

# Source Global Definitions

if [-F/ETC/BASHRC]; Then

. /etc/bashrc

Fi

Alias python= '/home/work/ctt/python/python2.7/bin/python '

Python environment variable user-level configuration

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.