Sometime my R & D result into weird output. You will be not able to access your bash terminal. It will be full of wired character sequences that can lock down your display. These characters will hide what you type or character displayed into strange symbols.
Fixing the display
For example, accidentally you run cat command over binary file (try cat /bin/bash)

To fix the display just type the reset command. It will initialization terminal again for you.
$ reset
If reset command failed to work type the following command to restore the session to a normal state:
$ stty sane
Press CTRL + L to clear the screen (or type clear command):
$ clear
Read man pages of stty and reset for more information:
man stty
man reset
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 6 comments… read them below or add one }
I can’t count the number of times I’ve screwed my terminal up like this. Usually I just close the window. Thanks for the fix!
same here joe. I use to close bash window.
this is great fix
Glad to know *this display fix* is helping all of you.
Appreciate your feedback
This did not work for me. I guess I’m stuck killing the terminal and starting over, but I don’t understand what could go so awry that stty and reset don’t help…
Hi. I know this sounds stupid. But I would like to know, Where or what subject it. I can search while looking for classes so I can learn how to run Line Print Terminals.
I worked as a temp on a Mill for a few month operating a locomotive. while working there, I notice that came to fix the machinery got paid 200 $ hour. I want that money!!.
@antonio lol …what..?