Shell - Viewing a binary file: Terminal illegible

December 2016




Issue


When you unintentionally display contents of a binary file (e.g. cat /bin/mount | more), it may happens that the terminal displays characters which are not printable, causing the display of totally unreadable special characters.

Solution


In such cases, if a CTRL-L is not enough simply type:

echo [CTRL]+v [Esc] c [Enter]

Related :

This document entitled « Shell - Viewing a binary file: Terminal illegible » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.