1753819 Members
8739 Online
108805 Solutions
New Discussion юеВ

Usage of LSOF

 
SOLVED
Go to solution
Vic006
Frequent Advisor

Usage of LSOF

How can i close the open ports using LSOF?
I have to close the following one

SMTP
DIAGMOND
XDMCP
SUN RPC
2 REPLIES 2
Yogeeraj_1
Honored Contributor

Re: Usage of LSOF

hi,

I am afraid that you cannot "close the open ports" using the LSOF command only.

For the services that you have listed above, why don't you just stop them?



kind regards
yogeeraj

No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Patrick Wallek
Honored Contributor
Solution

Re: Usage of LSOF

lsof does NOT close open ports. It does not open closed ports. It does nothing with except list what is in use. lsof is short for:

(l)i(s)t (o)pen (f)iles. That is what it does.