Find the answer to your Linux question:
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.
  1. #1
    Just Joined! sathiya's Avatar
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    97

    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.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Did you check the man page for the options available to you?

    Code:
    man top
    Check this page, too:

    http://linux.about.com/od/commands/a/lxctop01t08s00.htm
    Last edited by oz; 11-21-2008 at 11:47 AM.
    oz

  3. #3
    Just 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

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •