I was randomly experimenting and I found that running cat /etc/localtime
on PuTTY and on xterm have different effects.
Example:
root@webtest:~# cat /etc/localtime
TZif2
▒
▒▒Kmp▒▒ǀ▒▒▒p▒Ƀprp▒▒▒▒_Tp▒▒▒p▒A▒p▒nop▒#
▒O▒▒▒p▒▒▒ɧ▒#▒Op▒▒▒k▒p"p▒r▒p▒Pp▒2Lp▒▒p▒▒▒p▒▒p▒ȷ▒_p▒▒▒▒▒▒▒▒xl▒▒h]▒▒XN▒▒?p▒80▒▒:▒▒▒X▒p▒▒▒p▒/p▒▒ p▒▒b▒˵R▒▒▒▒̀K▒▒ܢ▒͕4▒▒▒K`▒r▒▒▒ſp▒u▒Ϭg▒▒R▒▒Х▒p▒T▒▒ьI▒▒2f▒҅▒p▒Y▒▒▒I▒▒▒9▒ ▒)▒ ▒▒ ▒ PuTTYPuTTYPuTTY▒ ▒▒ ▒▒ ܹY ݲ▒▒ޢu▒ߒf▒▒W▒▒rH▒▒b9▒▒R*▒▒B▒2
▒▒!▒▒
▒▒
▒▒▒ ▒▒▒ ▒▒▒ ▒▒ ▒▒ ▒z▒ ▒j▒ ▒c▒▒▒S▒▒▒C▒▒▒3▒▒▒#s▒▒d▒▒U▒▒▒F▒
▒*
▒7▒t(▒d▒T▒C▒3▒#▒ܐ͐▒㽠Ӡ▒Ñ▒▒▒▒▒▒▒▒|▒ lr!\c"LT#<E$,6%'&
'C▒'▒4▒(▒%▒)▒▒*▒▒+▒▒,▒▒-▒ڐ.▒ː/t▒▒0d▒▒1]▒2r▒3=▒4R▒5▒62x68▒8▒a9▒v▒:▒C;▒X▒<▒_▒=▒:▒>▒A▒?▒▒@f#▒A▒9BF▒Cd
%▒EC▒FɐG#▒G▒▒I▒I▒▒J▒K▒▒L̿▒M▒▒N▒▒▒OnnP▒▒▒QW▒▒Rle▒S7l▒TLG▒UN▒V,)▒V▒0▒XFX▒▒Y▒(Z▒▒[▒
\▒]▒▒▒_▒▒`_▒a}▒b?▒c]̐d▒e=▒▒▒▒g▒▒g藐h▒r▒i▒y▒j▒T▒k▒[▒l▒qm▒=▒n▒Soh▒p▒5qQ<rfs1tE▒uv/▒v▒▒x▒x▒▒y▒ِz▒▒{λ▒|▒�}▒▒▒~y▒▒ PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
▒▒c LMTWESTWETWEMTCETCESTTZif2
▒
▒▒▒▒▒▒▒▒▒▒Kmp▒▒▒▒▒▒ǀ▒▒▒▒▒▒▒p▒▒▒▒▒Ƀp▒▒▒▒rp▒▒▒▒▒▒▒▒▒▒▒▒▒_Tp▒▒▒▒▒▒▒p▒▒▒▒▒A▒p▒▒▒▒▒nop▒▒▒▒▒#
▒▒▒▒▒▒O▒▒▒▒▒▒▒▒p▒▒▒▒▒▒▒▒▒▒▒▒ɧ▒▒▒▒▒▒▒#▒▒▒▒▒▒▒Op▒▒▒▒▒▒▒▒▒▒▒▒▒k▒▒▒▒▒▒p"p▒▒▒▒▒r▒p▒▒▒▒▒Pp▒▒▒▒▒2Lp▒▒▒▒▒▒p▒▒▒▒▒▒▒p▒▒▒▒▒▒p▒▒▒▒▒ȷ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒_p▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒xl▒▒▒▒▒▒h]▒▒▒▒▒▒XN▒▒▒▒▒▒?p▒▒▒▒▒80▒▒▒▒▒▒:▒▒▒▒▒▒▒X▒p▒▒▒▒▒▒▒p▒▒▒▒▒/p▒▒▒▒▒▒ p▒▒▒▒▒▒b▒▒▒▒▒˵R▒▒▒▒▒▒▒▒▒▒▒▒̀K▒▒▒▒▒▒ܢ▒▒▒▒▒͕4▒▒▒▒▒▒▒K`▒▒▒▒▒r▒▒▒▒▒▒▒ſp▒▒▒▒▒u▒▒▒▒▒Ϭg▒▒▒▒▒▒R▒▒▒▒▒▒Х▒p▒▒▒▒▒T▒▒▒▒▒▒ьI▒▒▒▒▒▒2f▒▒▒▒▒҅▒p▒▒▒▒▒Y▒▒▒▒▒▒▒I▒▒▒▒▒▒▒9▒ ▒▒▒▒▒)▒ ▒▒▒▒▒▒ ▒▒▒▒▒ ▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒ ▒▒▒▒ܹY ▒▒▒▒ݲ▒▒▒▒▒▒ޢu▒▒▒▒▒ߒf▒▒▒▒▒▒W▒▒▒▒▒▒rH▒▒▒▒▒▒b9▒▒▒▒▒▒R*▒▒▒▒▒▒B▒▒▒▒▒2
▒▒▒▒▒▒!▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒
▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒ ▒▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒z▒ ▒▒▒▒▒j▒ ▒▒▒▒▒c▒▒▒▒▒▒▒S▒▒▒▒▒▒▒C▒▒▒▒▒▒▒3▒▒▒▒▒▒▒#s▒▒▒▒▒▒d▒▒▒▒▒▒U▒▒▒▒▒▒▒F▒
▒*
▒7▒t(▒d▒T▒C▒3▒#▒ܐ͐▒㽠Ӡ▒Ñ▒▒▒▒▒▒▒▒|▒ lr!\c"LT#<E$,6%'&
'C▒'▒4▒(▒%▒)▒▒*▒▒+▒▒,▒▒-▒ڐ.▒ː/t▒▒0d▒▒1]▒2r▒3=▒4R▒5▒62x68▒8▒a9▒v▒:▒C;▒X▒<▒_▒=▒:▒>▒A▒?▒▒@f#▒A▒9BF▒Cd
%▒EC▒FɐG#▒G▒▒I▒I▒▒J▒K▒▒L̿▒M▒▒N▒▒▒OnnP▒▒▒QW▒▒Rle▒S7l▒TLG▒UN▒V,)▒V▒0▒XFX▒▒Y▒(Z▒▒[▒
\▒]▒▒▒_▒▒`_▒a}▒b?▒c]̐d▒e=▒▒▒▒g▒▒g藐h▒r▒i▒y▒j▒T▒k▒[▒l▒qm▒=▒n▒Soh▒p▒5qQ<rfs1tE▒uv/▒v▒▒x▒x▒▒y▒ِz▒▒{λ▒|▒�}▒▒▒~y▒▒
▒▒c LMTWESTWETWEMTCETCEST
WET0WEST,M3.5.0/1,M10.5.0
PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYroot@webtest:~# PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
But when I run on xterm, it gives me this:
root@webtest:~# cat /etc/localtime
TZif2
Ý
æmpÇíppêp¢AÙp£nop¤#
ð¥O¢ðªïpªôðɧð®§#ð¯ Op°ð±kð²p"p³rp´Pp·2Lp¸Èp¸ÿ¹p¹ïªp¼È·ð½¸¨ð¾ðÀððÁxlðÂh]ðÃXNðÄ?pÅ80ðÆ:ðÇX¬pÇÙßpÉ/pÉñ pÊâbð˵RðËì£àÌKàÌÜ¢ðÍ4ðÍÃK`Îr¢àÎÅ¿pÏuðϬgàÐR
àÐ¥¡pÑTøðÑIàÒ2fàÒ
pÓYÄðÔIµðÕ9Ñ Ö) ׳ Ø^[[?64;1;2;6;6;9;15;18;21;22c ¤ Øù Ùé ܹY ݲ
Þ¢u ßf àW árH âb9 ãR* äB2
æ!ý ç
èû
éêü êÚí ëÊÞ ìºÏ íªÀ î± ï¢ ðz ñj
òc¯ óS ôC õ3 ö#s ÷d øU øóF
«*
7t(dT3úã½ Ó Ã½¬® lr!\c"LT#<E$,6%'&
'CÚ
Ë5A
9BF
%çN¬¡leÎ`_Õa}êe=®=5qQ<rfs1tEùuv/Âæÿÿÿ
Why is PuTTY putting PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTYPuTTY
on the prompt?
Edit: This question isn't a duplicate of Why using cat on binary files messed up the terminal and how?
The linked question asks why the ouput is different, even when redirecting the output to a file.
My question is asking why it is showing PuTTY
in the prompt (note: on the prompt, where we type the commands), on PuTTY.
I'm really sorry, but I'm not being able to express my doubt any better.