top command with rc to make it more useful and beautiful.

Just for fun, somedays back I was reading the top command. This command is something that I have been using since long time and have never read the man page so I thought let me do that. And yes, it was worth while to look at that page. I came to know that top supports toprc file and that it can be used to configure the way top looks. So:

Here\’s how top looks without the rc file


And here\’s how it looks with the rc file:


And here is the ~/.toprc file:

RCfile for \”top with windows\” # shameless braggin\’

Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=5.000, Curwin=0

Def fieldscur=mfcAbdEgHIursOpQTvyzWjKNLX

winflags=32184, sortindx=10, maxtasks=0

summclr=2, msgsclr=1, headclr=7, taskclr=7

Job fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX

winflags=62777, sortindx=0, maxtasks=0

summclr=6, msgsclr=6, headclr=7, taskclr=6

Mem fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX

winflags=62777, sortindx=13, maxtasks=0

summclr=5, msgsclr=5, headclr=4, taskclr=5

Usr fieldscur=ABDECGfhijlopqrstuvyzMKNWX

winflags=62777, sortindx=4, maxtasks=0

summclr=3, msgsclr=3, headclr=2, taskclr=3

This is just an example, but you can do much more with the rc file.

About Amit Agarwal