Find the answer to your Linux question:
Results 1 to 3 of 3
Hi! I am a new user in linux environment and having this problem. If i type in cat /proc/self/maps in linux terminal, there will be a 5 columns of output. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2006
    Posts
    4

    help command in linux console


    Hi! I am a new user in linux environment and having this problem.
    If i type in cat /proc/self/maps in linux terminal, there will be a 5 columns of output. What does each column represent? Thanks a lot for your help!

  2. #2
    Just Joined!
    Join Date
    Jan 2006
    Location
    India
    Posts
    52
    Hi,

    Well I cannot explain you in detail of each column meaning.
    The columns represent :

    Addr-range protection offset dev inode path-name

    --regards
    rajesh

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    The format of most of the files in /proc is described in the proc(5) manpage. I'll quote the section on the maps file:
    Code:
           /proc/[number]/maps
                  A file containing the currently mapped memory regions and  their
                  access permissions.
    
                  The format is:
    
            address           perms offset  dev   inode      pathname
            08048000-08056000 r-xp 00000000 03:0c 64593      /usr/sbin/gpm
            08056000-08058000 rw-p 0000d000 03:0c 64593      /usr/sbin/gpm
            08058000-0805b000 rwxp 00000000 00:00 0
            40000000-40013000 r-xp 00000000 03:0c 4165       /lib/ld-2.2.4.so
            40013000-40015000 rw-p 00012000 03:0c 4165       /lib/ld-2.2.4.so
            4001f000-40135000 r-xp 00000000 03:0c 45494      /lib/libc-2.2.4.so
            40135000-4013e000 rw-p 00115000 03:0c 45494      /lib/libc-2.2.4.so
            4013e000-40142000 rw-p 00000000 00:00 0
            bffff000-c0000000 rwxp 00000000 00:00 0
    
                  where  address is the address space in the process that it occu-
                  pies, perms is a set of permissions:
    
                       r = read
                       w = write
                       x = execute
                       s = shared
                       p = private (copy on write)
    
                  offset is the offset into the file/whatever, dev is  the  device
                  (major:minor),  and  inode is the inode on that device.  0 indi-
                  cates that no inode is associated with the memory region, as the
                  case would be with bss.
    If you have any further questions, don't hesitate to ask.

Posting Permissions

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