Execute export and use man bash in Linux shell System

Source: Internet
Author: User

I recommend a very good Linux shell System for you to learn. Here I will mainly explain the application of the Linux shell system, including introducing the knowledge of the Linux shell system.

1. Execute export in Linux shell:

Declare-x LANG = "en_US" is the LANE environment variable that we want to modify. But where can it be modified?

2. Use man bash in Linux shell:

When bash is invoked as an interactive login shell, or as a non-interactive shell with the -- login option, it first reads and executes commands from the file/etc/profile, if that file exists. after reading that file, it looks ~ /. Bash_profile ,~ /. Bash_login, and ~ /. Profile, in that order, and reads and executes commands from the first one that exists and is readable. The -- noprofile option may be used when the shell is started to inhibit this behavior.

Bash reads these configuration files in sequence during logon:

 
 
  1. /etc/profile  
  2. /.bash_profile  
  3. /.bash_login  
  4. /.profile 

Iii. Default Linux shell Language

It should be modified in the system-level file (/etc/profile) so that the modification result can be inherited by every user: Open/etc/profile, directly on it, the LANG variable setting command cannot be found, but the script also executes other scripts: for I in/etc/profile. d /*. sh; doif [-r "$ I"]; then. $ I fi done

4. In the/etc/profile. d/directory, view the *. sh script and find a file named "lang. sh", which should be:

Open/etc/profile. d/lang. sh: for langfile in/etc/sysconfig/i18n $ HOME /. i18n; do [-f $ langfile] &. $ langfile & sourced = 1done/etc/sysconfig/i18n is the place where the default system language is set. For my system, its content is as follows:

 
 
  1. LANG="en_US" 
  2. SUPPORTED="en_US:en" 
  3. SYSFONT="lat0-sun16" 
  4. SYSFONTACM="iso01" 

If you want the system's default language to change to UTF-8, you can change LANG to: LANG = "en_US.UTF-8"

  1. Deep Analysis of Type mode Linux shell Programming
  2. Introduction to Linux shell kernel commands
  3. Fully explain the end-to-end Linux shell Command mode
  4. Comprehensive Analysis and Discussion of Linux Shell Programming
  5. Brief Introduction to the Collection programming language of Linux shell commands

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.