/etc/profile: This file sets the environment information for each user of the system. When the user logs in for the first time, the file is executed.
And collect the shell settings from the configuration file in the /etc/profile.d directory.
/etc/bashrc: Execute this file for each user running the bash shell. This file is read when the bash shell is opened.
~/.bash_profile: Each user can use this file to enter shell information that is specific to their own use. When the user logs in, the
file is only executed once! By default, he sets some environment variables to execute the user's. Bashrc file.
~/.bashrc: This file contains bash information specific to your bash shell, which is read when you log in and each time you open a new shell.
~/.bash_logout: Execute this file each time you quit the system (exit the bash shell).
In addition, the variables (global) set in /etc/profile can be applied to any user, and the variables (local) set in ~/.bashrc can only inherit from /etc/profile. Variables, they are "father and son" relationships.
~/.bash_profile is an interactive, login way to run into bash
~/.bashrc is an interactive non-login way to get into bash running
Usually both The settings are roughly the same, so usually the former will call the latter.
How to install JDK graphic parsing in Ubuntu, for many friends who dont know how to operate,
one, top command 1. Function The top command is used to display the program process in execution,
A system, we can not have only one user, so we need to create other users. This is especially true a
What are the Linux file management and bash features?
Linux ls, ls -l, ls -l, ll command
Linux view file time accurate to seconds
LINUX Common Commands Encyclopedia
CentOS open port 80, 8080 or open a port
Linux switch command (shutdown, reboot, halt, init)
RedHat configuration image media is yum source
Trojan in the Linux server, manual removal method
Linux network based routing DHCP configuration
Modifying File Access Control Permissions under Windows Command Line
The notebook can't turn off the power button is not going to be what happened?
Computer screen auto refresh settings Experts to teach you
How to set up win8 system ip address local connection?
Win8 KMS activation principle detailed
How to release C disk space 27 strokes specific optimization skills
How can I solve the problem after the Win7 system computer installs the network card?