Scenario
I’m using putty from Microsoft Windows machine to ssh to a Linux server. I’m getting this so-called funny and junk characters when I execute pstree,
- [hpmjamaludd@deljump03 ~]$ pstree
- initââ¬âacpid
- ââatd
- ââcannaserver
- ââcmaeventd
- ââcmafcad
- ââcmahealthd
- ââcmahostd
- ââcmaidad
- ââcmaided
- ââcmanicd
- ââcmapeerd
- ââcmaperfd
- ââ2*[cmasm2d]
- ââcmastdeqd
- ââcmathreshd
- ââcpuspeedâââ3*[cpuspeed]
- ââcrond
- ââcups-config-dae
- ââcupsd
- ââdbus-daemon-1
- ââevents/0ââ¬âaio/0
- â ââaio/1
- â ââaio/2
- â ââaio/3
- â ââkacpid
- â ââkblockd/0
- â ââkblockd/1
- â ââkblockd/2
- â ââkblockd/3
- â ââkhelper
- â ââkmir_mon
- ââevents/1âââkauditd
- ââevents/2ââ¬âkmirrord
- â ââ2*[pdflush]
- ââevents/3
- ââ2*[gconfd-2]
- ââgpm
- ââhald
- ââhpasmd
- ââhpsmhdââ¬âhpsmhd
- â ââ2*[rotatelogs]
- ââhttâââhtt_server
- ââirqbalance
- ââkhubd
- ââ13*[kjournald]
- ââklogd
- ââkseriod
- ââksoftirqd/0
- ââksoftirqd/1
- ââksoftirqd/2
- ââksoftirqd/3
- ââkswapd0
- ââmidaemon
- ââmigration/0
- ââmigration/1
- ââmigration/2
- ââmigration/3
- ââ6*[mingetty]
- âântpd
- ââovcdââ¬âcoda
- â ââopcacta
- â ââopcle
- â ââopcmona
- â ââopcmsga
- â ââopcmsgi
- â ââovbbccb
- â ââovconfd
- ââovtrcd
- ââperfalarm
- ââportmap
- ââradexecd
- ââradsched
- âârpc.idmapd
- âârpc.statd
- ââscopeux
- ââ2*[screenâââbashâââscreen]
- ââ31*[screenâââbash]
- ââscreenâââbashâââtelnet
- ââ2*[sendmail]
- ââsnmpd
- ââsshdââ¬â19*[sshdâââsshdâââbash]
- â ââ5*[sshdâââsshdâââbashâââssh]
- â ââ13*[sshdâââsshdâââbashâââtelnet]
- â ââsshdâââsshdâââbashâââpstree
- â ââsshdâââsshdâââbashâââkshâââvi
- â ââsshdâââsshdâââbashâââbashâââtelnet
- ââsyslogd
- ââtinyproxyâââ10*[tinyproxy]
- ââttd
- ââudevd
- ââvcagentd
- ââxfs
- ââxinetd
It sucks, isn’t it?
Solution
Use pstree -G. Yay!
- [hpmjamaludd@deljump03 ~]$ pstree -G
- init─┬─acpid
- ├─atd
- ├─cannaserver
- ├─cmaeventd
- ├─cmafcad
- ├─cmahealthd
- ├─cmahostd
- ├─cmaidad
- ├─cmaided
- ├─cmanicd
- ├─cmapeerd
- ├─cmaperfd
- ├─2*[cmasm2d]
- ├─cmastdeqd
- ├─cmathreshd
- ├─cpuspeed───3*[cpuspeed]
- ├─crond
- ├─cups-config-dae
- ├─cupsd
- ├─dbus-daemon-1
- ├─events/0─┬─aio/0
- │ ├─aio/1
- │ ├─aio/2
- │ ├─aio/3
- │ ├─kacpid
- │ ├─kblockd/0
- │ ├─kblockd/1
- │ ├─kblockd/2
- │ ├─kblockd/3
- │ ├─khelper
- │ └─kmir_mon
- ├─events/1───kauditd
- ├─events/2─┬─kmirrord
- │ └─2*[pdflush]
- ├─events/3
- ├─2*[gconfd-2]
- ├─gpm
- ├─hald
- ├─hpasmd
- ├─hpsmhd─┬─hpsmhd
- │ └─2*[rotatelogs]
- ├─htt───htt_server
- ├─irqbalance
- ├─khubd
- ├─13*[kjournald]
- ├─klogd
- ├─kseriod
- ├─ksoftirqd/0
- ├─ksoftirqd/1
- ├─ksoftirqd/2
- ├─ksoftirqd/3
- ├─kswapd0
- ├─midaemon
- ├─migration/0
- ├─migration/1
- ├─migration/2
- ├─migration/3
- ├─6*[mingetty]
- ├─ntpd
- ├─ovcd─┬─coda
- │ ├─opcacta
- │ ├─opcle
- │ ├─opcmona
- │ ├─opcmsga
- │ ├─opcmsgi
- │ ├─ovbbccb
- │ └─ovconfd
- ├─ovtrcd
- ├─perfalarm
- ├─portmap
- ├─radexecd
- ├─radsched
- ├─rpc.idmapd
- ├─rpc.statd
- ├─scopeux
- ├─2*[screen───bash───screen]
- ├─31*[screen───bash]
- ├─screen───bash───telnet
- ├─2*[sendmail]
- ├─snmpd
- ├─sshd─┬─19*[sshd───sshd───bash]
- │ ├─5*[sshd───sshd───bash───ssh]
- │ ├─13*[sshd───sshd───bash───telnet]
- │ ├─sshd───sshd───bash───pstree
- │ ├─sshd───sshd───bash───ksh───vi
- │ └─sshd───sshd───bash───bash───telnet
- ├─syslogd
- ├─tinyproxy───10*[tinyproxy]
- ├─ttd
- ├─udevd
- ├─vcagentd
- ├─xfs
- └─xinetd
Lesson Learned.
From manual page, option ‘G’ stands for “Use VT100 line drawing characters.”
{ 5 } Comments
Better yet, configure your putty to use UTF-8 instead of defaulting to ISO8859-1 or (worse) the windows codepages. It’s under “Window” and “Translation”.
Usingwhy use putty on windows ?
Usingwhy dont use ssh client on your handphone ?
Jon,
Thanks for the tips, it works!
Piju,
Please cut the crap, will ya’?
Anyway, these are the answers to your questions.
Using-Coz my office workstation is using Windows XP
-I need a big screen, not a tiny one.
now i know.
Usingthanks for the answers
Selamat Hari Raya
UsingPost a Comment