no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


lsof [2014/05/09 18:07] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== lsof ======
  
 +** Show networking on a port **
 +
 +<code>
 +lsof -iTCP -i :port
 +lsof -i :22
 +</code>
 +
 +** Show connections to a host **
 +
 +<code>
 +lsof [email protected]­8.1.5
 +</code>
 +
 +** Find ports that are being listened to **
 +
 +<code>
 +lsof -i | grep LISTEN
 +</code>
 +
 +** Find files open by user **
 +
 +<code>
 +lsof -u <us­er>
 +</code>
 +
 +** Find files open by command **
 +
 +<code>
 +lsof -c <co­mma­nd>
 +</code>
 +
 +** Find files open by proccess id **
 +
 +<code>
 +lsof -p <pi­d>
 +</code>

Navigation
QR Code
QR Code lsof (generated for current page)