Check open files for a given PID or process name
比如查看 test.sh
这个文件被哪些进程占用,可以用
lsof | grep test.sh
lsof -i:PORT
lsof -p PID
Or
fuser -v test.sh
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here