From 15230bbb9b1f69def9b0e1b41a097638c0fda734 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 28 Apr 2020 09:11:18 +0000 Subject: deploy: fef4d6ff2ad9f48e6dccde0f061453e6a3ac624e --- lsof.html | 249 -------------------------------------------------------------- 1 file changed, 249 deletions(-) delete mode 100644 lsof.html (limited to 'lsof.html') diff --git a/lsof.html b/lsof.html deleted file mode 100644 index 4e41ede..0000000 --- a/lsof.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - lsof - Notes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - -
-
-

lsof(8)

-
lsof
-  -a ......... AND slection filters instead ORing (OR: default)
-  -p <pid> ... filter by <pid>
-  +fg ........ show file flags for file descripros
-  -n ......... don't convert network addr to hostnames
-  -P ......... don't convert network port to service names
-  -i <@h[:p]>. show connections to h (hostname|ip addr) with optional port p
-
-
file flags:
-  R/W/RW ..... read/write/read-write
-  CR ......... create
-  AP ......... append
-  TR ......... truncate
-
-

Examples

-

File flags

-

Show open files with file flags for process:

-
lsof +fg -p <pid>
-
-

Open TCP connections

-

Show open tcp connections for $USER:

-
lsof -a -u $USER -i tcp
-
-

Note: -a ands the results. If -a is not given all open files matching -$USER and all tcp connections are listed (ored).

-

Open connection to specific host

-

Show open connections to localhost for $USER:

-
lsof -a -u $USER -i @localhost
-
- -
- - -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3