Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a student and learning about operating systems, I was modifying a file using vi, when I accidentally did something (I don't remember what) that change the codification/encoding and now this is how I see everything.


That screenshot is while using vi, but the problem is system wide. I tried searching but couldn't find anything.

I can delete, everything and reinstall, as it is just a virtual machine but I'd rather learn what happened.

share|improve this question
up vote 5 down vote accepted

I think all you need to do is run reset.

If that doesn't help, look to see if you changed any files in /etc recently (e.g. find /etc -mtime -1) and read the unicode_start or consolechars man pages.

share|improve this answer
Thanks! That fixed my problem. – vierja Apr 18 '11 at 4:41

Another, older way of doing the same thing as reset: stty sane

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.