Results 1 to 3 of 3
Hi all,
Am wondering that how to edit the toprc file., actually i googled for some reference about it...
do anyone have reference for it. I need to understand, and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-21-2008 #1
edit toprc file
Hi all,
Am wondering that how to edit the toprc file., actually i googled for some reference about it...
do anyone have reference for it. I need to understand, and edit the toprc file for my wish.
I know we can do W while seeing the top output, and it would create the toprc file, but is there any guide to understand about the toprc format, and for editing.
Actually my requirement is top shows only the first 8 characters of the user name, but i wanted it to edit to 12. How can i do ??
Any reference will be appreciated.
- 11-21-2008 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
Did you check the man page for the options available to you?
Check this page, too:Code:man top
http://linux.about.com/od/commands/a/lxctop01t08s00.htmLast edited by oz; 11-21-2008 at 11:47 AM.
oz
- 05-23-2009 #3Just Joined!
- Join Date
- May 2009
- Posts
- 1
First, when in top, press "W" so that top saves the file - it may not exist
It should consist of two lines. The default may be something like:
AbcDgHIjklMnoTP|qrsuzyV{EFWX
5ci
In the first line you specify what is displayed and the letters are the same as explained in man page and in help
o A - PID - process id
o D - USER username
o H - PRI piority
o I - NI nice value
o M - SIZE size, virtual image
o T - RSS Resident set size
o P - SHARE share pages
o V - process status
o W - TIME
o E - CPU? (not sure)
o F - Mem? (not sure)
In the second line you specify the behavior of top. In the example
o [number] - how many seconds for refresh, standard is 5
o c - show command line
o i ignore zombie processes
Hope that helps



