aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lsof.md
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-04-19 22:13:44 +0200
committerjohannst <johannes.stoelp@gmail.com>2020-04-19 22:13:44 +0200
commitfef4d6ff2ad9f48e6dccde0f061453e6a3ac624e (patch)
treec21dfcf8e7c8895a94e1c72cb9588c94794656b1 /src/lsof.md
parent43e402ba2320ced7972d33c9442b2745afe230f6 (diff)
downloadnotes-fef4d6ff2ad9f48e6dccde0f061453e6a3ac624e.tar.gz
notes-fef4d6ff2ad9f48e6dccde0f061453e6a3ac624e.zip
added new hierarchy
Diffstat (limited to 'src/lsof.md')
-rw-r--r--src/lsof.md40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/lsof.md b/src/lsof.md
deleted file mode 100644
index 8253003..0000000
--- a/src/lsof.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# lsof(8)
-
-```markdown
-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
-```
-
-```markdown
-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:
-```markdown
-lsof +fg -p <pid>
-```
-## Open TCP connections
-Show open tcp connections for `$USER`:
-```markdown
-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`:
-```markdown
-lsof -a -u $USER -i @localhost
-```