From: https://wido.me/sunteya/understand-bashrc-and-profile/
In general Linux or Unix systems, you can edit bashrc and profile to set the user's work environment. Many articles also use profile and bashrc, but what is the role of each file and how
Guide
In the General Linux or Unix system, can be edited BASHRC and profile to set up the user's working environment, many articles for profiles and BASHRC are also used, but what is the role of each file and how to use it?
First we
Uncle Lemon in the neighborhood.2015-03-11 14:16:261, according to this article:Http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.htmlTo put it simply:. bash_profile is executed for login shells, while. BASHRC are executed for interactive
When you log on to a linux machine using the linux personalized settings. bashrc file, you need to customize the settings, such as the command alias and path. You can edit the. bashrc file in the personal directory. Step: 1. Edit the. bashrc file
/etc/profile: This file sets the environment information for each user of the system, and the file is executed when the user logs on for the first time.and collect the shell settings from the configuration file of the/ETC/PROFILE.D
/etc/profile: This file sets the environment information for each user of the system, and the file is executed when the user logs on for the first time.and collect the shell settings from the configuration file of the/ETC/PROFILE.D
Ubuntu Linux System environment variable configuration file:/etc/profile: The first file that is used when the operating system customizes the user environment at logon, which sets the environment information for each user of the system, which is
1. The GAMIT editor for bashrc runs in the csh or tcsh environment. After installation, you must set the environment variables in. cshrc. However, most Linux instances run in the bash environment. In fact, the difference between B-shell and c-shell
View of system environment variables:[[Email protected] ~]# envHostname=localhost.localdomainSelinux_role_requested=Term=xtermShell=/bin/bashhistsize=1000ssh_client=192.168.7.105 50641
In a word,. bash_profile is the environment variable after login, And. bashrc is not logged on
When working with Linux, UNIX, and Mac OS x, I always forget which bash config file to edit when I want to set my path and other environmental variables
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.