mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 13:42:11 +01:00
Fix grammar of lsof
This commit is contained in:
parent
3139796524
commit
8f2912e5da
1 changed files with 7 additions and 7 deletions
|
@ -4,16 +4,16 @@ sudo lsof -i4
|
||||||
# List all IPv6 network files
|
# List all IPv6 network files
|
||||||
sudo lsof -i6
|
sudo lsof -i6
|
||||||
|
|
||||||
# To find listening ports
|
# List all open sockets
|
||||||
lsof -Pnl +M -i4
|
|
||||||
|
|
||||||
# To list all open sockets
|
|
||||||
lsof -i
|
lsof -i
|
||||||
|
|
||||||
# To find which program is using the port 80
|
# List all listening ports
|
||||||
|
lsof -Pnl +M -i4
|
||||||
|
|
||||||
|
# Find which program is using the port 80
|
||||||
lsof -i TCP:80
|
lsof -i TCP:80
|
||||||
|
|
||||||
# To show connections to a specific host
|
# List all connections to a specific host
|
||||||
lsof -i@192.168.1.5
|
lsof -i@192.168.1.5
|
||||||
|
|
||||||
# List all processes accessing a particular file/directory
|
# List all processes accessing a particular file/directory
|
||||||
|
@ -28,7 +28,7 @@ lsof -c <command-name>
|
||||||
# List all files a process has open
|
# List all files a process has open
|
||||||
lsof -p <pid>
|
lsof -p <pid>
|
||||||
|
|
||||||
# Lists all files open mounted at /mount/point.
|
# List all files open mounted at /mount/point.
|
||||||
# Particularly useful for finding which process(es) are using a
|
# Particularly useful for finding which process(es) are using a
|
||||||
# mounted USB stick or CD/DVD.
|
# mounted USB stick or CD/DVD.
|
||||||
lsof +f -- </mount/point>
|
lsof +f -- </mount/point>
|
||||||
|
|
Loading…
Reference in a new issue