Viewing 1 to 2 of 2 items
Archive | lsof RSS feed for this section

lsof

lsof – list open files (files include network connections) lsof -i lsof -i :port  example : lsof  -i :25       (25 send mail port) lsof [ -?abChlnNOPRstUvVX ] [ -A A ] [ -c c ] [ +|-d d ] [ +|-D D ] [ +|-f [cfgGn] ] [ -F [f] ] [ -g [s] ] [ -i [i] ] [ -k k ] [ +|-L [l] ] [ -m m ] [ +|-M ] [ -o [o] ] [ -p s ] [ +|-r [t] ] [ -S [t] ] [ -T [t]] [ -u s ] [ +|-w ] [ — ] [names]  In the absence of any options, lsof lists all open files  Full Article…

0

lsof to find the process

lsof -t -i:4444 would list only the pid of the process listening on port 4444. You could just say kill `lsof -t -i:4444`   You use lsof: # lsof -n | grep TCP | grep LISTEN | grep 4444 The output will be something like: pname 16125 user 28u IPv6 4835296 TCP *:4444 (LISTEN) Where the  Full Article…

0