Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the garbled code when ssh accesses linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Today, what the editor shares with you is how to solve the garbled code when ssh accesses linux. I believe many people don't know much about it. In order to let you know more about the garbled code when ssh accesses linux, I summarize the following contents for you. Let's look down together. I'm sure you'll get something.

The specific methods are as follows:

1. Use the ls-a command to find the .bash _ profile configuration file

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

LANG=zh_CN.GB2312export LANG

The Chinese language can be displayed normally.

After you change the .bash _ profile configuration file, the contents of the file are as follows:

# .bash _ profile# Get the aliases and functionsif [- f ~ / .bashrc]; then. ~ / .bashrcfi # User specific environment and startup programsPATH=$PATH:$HOME/binLANG=zh_CN.GB2312export PATHexport LANGunset USERNAME

About ssh access linux garbled how to share here, I hope the above content can have a certain reference value for everyone, you can learn to apply. If you like this article, you might as well share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report