/proc

1. /proc/modules  ----can read the modules infos from this file loaded by system

2.Some linux tools such as ps, top and uptime  are based on proc virtual file system

3./proc/%id/stat --- can get the name of the process

猜你喜欢

转载自my.oschina.net/u/238880/blog/85430