原文地址::https://www.xuebuyuan.com/1986687.html
相关文章
1、Linux系统下proc目录详解----https://my.oschina.net/lvhuizhenblog/blog/666647
2、linux下查看设备节点节点号----https://blog.csdn.net/lala0903/article/details/108112321
3、通过cat查看设备某进程信息----https://www.jianshu.com/p/93d163289183
查看 fd 对应的设备
#cd /proc/pid/fd
# ls -all
dr-xr-xr-x 6 root root 0 Jan 1 01:18 ..
lrwx------ 1 root root 64 Jan 1 01:19 0 -> /dev/ttyS0
lrwx------ 1 root root 64 Jan 1 01:19 42 -> /dev/input/event1
lrwx------ 1 root root 64 Jan 1 01:19 13 -> /dev/nexus_astm
lrwx------ 1 root root 64 Jan 1 01:19 14 -> /dev/nexus_display
//====================================================================
本人备注::
1》通过ps -ax查看进程的pid
2》然后到/proc/pid/fd目录下查看该进程占用了那些资源!!!