Home > System Tutorial > LINUX > body text

Fix linux console display garbled characters

WBOY
Release: 2024-03-27 20:01:25
forward
721 people have browsed it

Sometimes my exploration outputs some weird stuff on the screen. For example, once I accidentally used the cat command to view the contents of a binary file - cat /sbin/*. In this case you will no longer be able to access bash/ksh/zsh in the terminal. A lot of strange characters flood your terminal. These characters will hide the content you enter and display %E

To restore normal display, just enter the reset command. It will initialize the terminal again for you:

$ clear
Copy after login

or:

$ reset
Copy after login

If the reset command still does not work, enter the following command to return the painting to its normal state:

$ tput reset
Copy after login

Press CTRL L to clear the screen (or enter the clear command):

$ stty sane
Copy after login
Use ANSI escaping�%8

The above is the detailed content of Fix linux console display garbled characters. For more information, please follow other related articles on the PHP Chinese website!

source:linuxprobe.com
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!