Home > Operation and Maintenance > Linux Operation and Maintenance > Garbled characters appear when ssh accesses linux

Garbled characters appear when ssh accesses linux

王林
Release: 2020-02-14 16:06:54
Original
3218 people have browsed it

Garbled characters appear when ssh accesses linux

The specific method is as follows:

1. Use the ls -a command to find the .bash_profile configuration file;

2. Use the vi editor to open the file , add the following configuration:

LANG=zh_CN.GB2312
export LANG
Copy after login

to display Chinese normally.

(Related learning video sharing: linux video tutorial)

After changing the .bash_profile configuration file, the content of the file is as follows:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
LANG=zh_CN.GB2312
export PATH
export LANG
unset USERNAME
Copy after login

Related article tutorials Recommended: linux tutorial

The above is the detailed content of Garbled characters appear when ssh accesses linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template