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:
- /etc/profile
- /.bash_profile
- /.bash_login
- /.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:
- LANG="en_US"
- SUPPORTED="en_US:en"
- SYSFONT="lat0-sun16"
- 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"
- Deep Analysis of Type mode Linux shell Programming
- Introduction to Linux shell kernel commands
- Fully explain the end-to-end Linux shell Command mode
- Comprehensive Analysis and Discussion of Linux Shell Programming
- Brief Introduction to the Collection programming language of Linux shell commands