bash: lsof: command not found

1 개요[ | ]

bash: lsof: command not found
Console
Copy
# lsof -i :3030
bash: lsof: command not found
Console
Copy
# apt install lsof
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  lsof
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 319 kB of archives.
After this operation, 462 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 lsof amd64 4.93.2+dfsg-1.1 [319 kB]
Fetched 319 kB in 0s (1,415 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package lsof.
(Reading database ... 27692 files and directories currently installed.)
Preparing to unpack .../lsof_4.93.2+dfsg-1.1_amd64.deb ...
Unpacking lsof (4.93.2+dfsg-1.1) ...
Setting up lsof (4.93.2+dfsg-1.1) ...
Processing triggers for man-db (2.9.4-2) ...
Console
Copy
# lsof -i :3030
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
node    50671 root   39u  IPv4 775032      0t0  TCP localhost:39718->localhost:3030 (CLOSE_WAIT)
node    50671 root   44u  IPv4 736965      0t0  TCP localhost:53682->localhost:3030 (CLOSE_WAIT)
node    50671 root   45u  IPv4 744958      0t0  TCP localhost:54782->localhost:3030 (CLOSE_WAIT)
...

2 같이 보기[ | ]