lsof command

 

[root@localhost ~]# lsof    
COMMAND   PID      USER       FD       TYPE      DEVICE    SIZE/OFF    NODE      NAME
init       1       root      cwd        DIR       8,3        4096         2      /
init       1       root      txt        REG       8,3      150352        23      /sbin/init
......
Process name,     process ID   , process owner,   file descriptor ,   file type   , the disk where the file is located, the   file size , the    file inode   , and the specific file opened by the inode

 

lsof -i:22 #See       which processes are occupying port 22

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325299521&siteId=291194637