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
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
BASHRC of permanent environment variable under embedded Linux1). bashrc fileUnder the Linux system Normal user directory (CD/HOME/XXX) or root user directory (Cd/root), with the command ls-al can see 4 hidden files,Commands entered before the.
Conversion from http://blog.csdn.net/dingxy/archive/2009/03/20/4008724.aspx and http://blog.csdn.net/dingxy/archive/2009/03/23/4016383.aspx
/Etc/profile: This file sets the environment information for each user in the system. When the user logs on
/Etc/profile: This file sets the environment information for each user in the system. When the user logs on for the first time, this file is executed.And collect shell settings from the configuration file in the/etc/profile. d directory./Etc/bashrc:
(0) write in frontSome nouns may need to be explained. (You can also look at this section first, see the doubts later on the explanation)Launch bash Shell: A bash shell process is started, which is usually understood to be opening a terminal. Note
When we perform some bash-related operations, such as setting aliases and logging on to startup items, we will deal with the following files more or less. When we use them, we will check them and forget them. A good memory is not as bad as a pen.
1. Check if JDK is installed in the current system (usually the default installation in CentOS OpenJDK)
# java–version
If OPENJDK is present, it needs to be uninstalled first:
# Rpm-qa|grep JDK or Rpm-qa|grep Javajava-1.6.0-
In Linux,. bash_profile,. bash_logout, and. bashrc files have special meanings for bash. When a user logs on or calls another bashshell, they provide a method to automatically establish the logon account environment and allow various commands to be
In Linux,. bash_profile,. bash_logout, and. bashrc files have special meanings for bash. When a user logs on or calls another bashshell, they provide a method to automatically establish the logon account environment and allow various commands to be
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.