A few simple questions about SHELL

Source: Internet
Author: User
For a few simple questions about SHELL-Linux general technology-Linux technology and application information, see the following for details. 1. [Define environment variables in the System Configuration File]:
The following is the command I opened: last few lines of gedit/etc/profile
Export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

For I in/etc/profile. d/*. sh; do
If [-r "$ I"]; then
. $ I
Fi
Done

Unset I
Unset pathmunge /// 111111111111111111111111111111111111111 ///
/// 22222222222222222222222 ///

Question: If you want to add a new environment variable, write it in the // 1 // or the // 2 // place? Or both.
In addition, the first line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
Is it all the environment variables of the system. If there are other environment variables, why not display them together?

2. location variable
What is the necessity of its existence? If you want to read the input from the outside world, you can also use read to add environment variables ??

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.