title: how to get exe or program file from shmid in linux?
body: <p>how to get exe or program file from shmid in linux ?<br>
     there are many shared memories running in the system.
     how to get program file or exe from shared memory segments and  what are nattch and what does status specify ?   </p>
  
  <pre><code> Shared Memory Segments --------
      key        shmid      owner      perms      bytes      nattch     status      
      0x0052e2c1 0          postgres  600        39337984   10                      
      0x00000000 163841     root      600        393216     2          dest         
      0x00000000 196610     root      600        393216     2          dest         
      0x00000000 229379     root      600        393216     2          dest         
      0x00000000 262148     root      600        393216     2          dest         
      0x00000000 294917     root      600        393216     2          dest         
      0x00000000 327686     root      600        393216     2          dest         
      0x00000000 360455     root      600        393216     2          dest         
      0x00000000 393224     root      600        393216     2          dest         
      0x00000000 425993     gdm       600        393216     2          dest         
      0x00000000 458762     gdm       600        393216     2          dest         
      0xffffffff 491531     root      666        4          6                       
      0x7401e943 524300     root      666        27         4                       
  </code></pre>