Linux terminal garbled-Linux general technology-Linux technology and application information. The following is a detailed description. For a Linux Virtual Machine (with a desktop environment) on Microsoft Virtual PC 2004, the default language is simplified Chinese. When I press ctrl + alt + F1 to switch the terminal, when you press a command, the prompt should be a Chinese prompt, but it is all garbled and I don't know how to solve it, by searching for information, I learned that the "# export LANG C" command can prompt the terminal to change the scale in English. But what is export? What other functions does it have in linux?
Export:
Function: sets or displays environment variables.
Syntax: export [-fnp] [variable name] = [variable setting value]
Note: When the shell executes a program, the shell will provide a set of environment variables. Export allows you to add, modify, or delete environment variables for subsequent programs. The effect of export is only for this login operation.
Parameters:
-F indicates the function name in [variable name ].
-N: Delete the specified variable.
-P: list all environment variables that the shell assigns to the program.
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