bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9344: about the command of 'cat'


From: Pádraig Brady
Subject: bug#9344: about the command of 'cat'
Date: Mon, 22 Aug 2011 23:36:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0

On 08/22/2011 08:21 PM, 博高 wrote:
> Hello:
>   I am a user of ubuntu 10.04.2.While I am trying to use 'cat' to
> display a binary file.....Every letter on my display goes wrong....
>   yours GB from China

There was probably a character sequence in the binary file
to put your terminal into an alternate character set mode.
For example try:

  tput smacs; echo abcd; tput rmacs

If your terminal is messed up, the `reset` command
(even if you can't see what you're typing), will fix things.

Also note the `cat -v` and `od -Ax -tx1z -v` coreutils
commands for viewing binary files.

cheers,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]