MongoDB Learning Notes

Source: Internet
Author: User

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?

Related Article

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.