How to Fix the Terminal After Viewing Binary File

Every now and then, I open up a file only to realize that it is a binary file (yes, I keep ignoring the warning that I am about to view a binary file, not text). Then the terminal ends up messy, or in other words, wonky. The characters have turned out in various colors, the lines are indented, and you can’t see what you are typing.

To fix it, run this command:

$ reset

As the name implies, this will reset the terminal back to its normal state.