Shell basics-environment variable configuration file

Source: Internet
Author: User

Shell basics-environment variable configuration file
Source configuration file or. configuration File: After the environment variables are written to the configuration file, You need to log on again to take effect, but use the source command to directly take effect the main configuration file: /etc/profile. d /*. sh ~ /. Bash_profile ~ /. Bashrc/etc/bashrc where/etc/profile. d/*. sh/etc/bashrc takes effect for all users ~ /. Bash_profile ~ /. Bashrc only takes effect for the current user. The sequence of calling the environment variable configuration file # The image cannot be displayed, the USER variable LOGNAME variable MAIL variable PATA variable HOSTNAME variable HISTSIZE variable umask calls/etc/profile. d /*. sh file configuration file ~ /. Call the role of bash_profile ~ /. The bashrc file adds the ": $ HOME/bin" directory to the PATH variable. Shell logon information: local terminal welcome information:/etc/issue # The image cannot be displayed, private Chat remote login information file (the above Escape Character cannot be used in this folder, only plain text information can be written):/etc/issue.net whether to display this welcome information, determined by the ssh configuration file/etc/ssh/sshd_config, add the "Banner/etc/issue.net" line to display and restart the SSH service.

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.