Linux environment displays all files (including hidden files)
Ll-a
There are two files that can provide this "auto-set when entering the system" function, one is/ETC/BASHRC, the other is ~/.BASHRC. Where/ETC/BASHRC is executed by each user, and ~/.BASHRC is only performed by the current user. So/ETC/BASHRC only the root user can change, and ~/.BASHRC is the individual user private files. "~" refers to the user's home directory.
If the environment variable that was set before Linux re-login is still in effect, you must modify one of these two files and modify the other files to be invalid. After modification, use the command source ~/.BASHRC to make the changes effective.
The specific changes are as follows:
Path= $PATH:/opt/*/mongodb/bin/
Export PATH
Env command displays the current system's environment variable path
Echo $PATH can also display the environment variable PATH
View File Size command
Du-h--max-depth=1 Mongodata
Df-h can view the size of the server disk
Http://www.cnblogs.com/benio/archive/2010/10/13/1849946.html
Http://www.webjx.com/server/linux-137.html
Http://www.360doc.com/content/06/1120/15/13362_266494.shtml
http://blog.csdn.net/jbgtwang/article/details/7902521
~/.bash_profile and. Bash_profile content is the same
But ~/.BASHRC and. BASHRC content is not the same
What is the reason?