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
<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/top.jpg"><img class="size-full wp-image-1169" title="top" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/top.jpg" alt="top" width="656" height="362" />
And here’s how it looks with the rc file:
<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/toprc.jpg"><img class="size-full wp-image-1170" title="toprc" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/toprc.jpg" alt="top with rc" width="656" height="362" />
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.
Related Articles:
- 2009/09/17 Diff Linux command — Find the difference in files the easier way.
- 2009/08/12 Consider your account to be for you then use Linux
- 2009/07/20 bash tutorial for begineer and experienced.
- 2009/06/12 Managing your remote site locally – sitecopy.
- 2009/05/26 Diary and Journal on your linux Desktop
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.