Home >Operation and Maintenance >Linux Operation and Maintenance >Does Linux window support Chinese?

Does Linux window support Chinese?

藏色散人
藏色散人Original
2023-03-09 10:01:592150browse

The Linux window supports Chinese. The setting method is: 1. Check the default system language under Linux through the "locale" command; 2. Modify the "vim ~/.bashrc" file and insert "LANG" at the end of the file. =zh_CN.UTF-8LANGUAGE=zh_CN.UTF-8" can make the Linux window support Chinese.

Does Linux window support Chinese?

#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

Does the Linux window support Chinese?

Linux command line settings for Chinese display

Setup process

Enter the following command

locale

You can see that the default system language under Linux is English
Does Linux window support Chinese?

vim modifies this file, which is equivalent to the system configuration file

vim ~/.bashrc

Insert the following code at the end of the file, save and exit

#language
LANG=zh_CN.UTF-8LANGUAGE=zh_CN.UTF-8

Does Linux window support Chinese?

Run the modified configuration file

source ~/.bashrc

Execute the locale command, check that the system language is Chinese, the modification is successful

locale

Does Linux window support Chinese?

Let us execute some commands Let’s take a look at the effect:

The three commonly used commands for Linux disk management are df, du and fdisk.

  • df (English full name: disk full): List the overall disk usage of the file system
  • du (English full name: disk used): Check the disk space usage
  • fdisk: used for disk partitions

Does Linux window support Chinese?

Extended reading:

~ is a subrogator indicating It is the address of the personal directory. Because each user has his or her own personal directory address, ~ is used as a wildcard character to ensure compatibility.
. represents the directory itself, but generally does not need to be written, so cd ~/. has the same effect as cd ~ and cd ~/
The user who executes the command here is root, so the command execution will go to / Under the root folder
Does Linux window support Chinese?

When I switch to the xt user and execute this command, it will jump to the /home/xt folder
Does Linux window support Chinese?

But . There is something behind it is another problem. Click on the header of the file name to represent a hidden file
~/.bashrc is a .bashrc file in your /root directory
The file with . in front of it is a Hidden files. If you don't use ls -a, you can't see it with ls.

ls -a lists the files in all subdirectories

Does Linux window support Chinese?

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of Does Linux window support Chinese?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn