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

pgrep(1)

-
pgrep [opts] <pattern>
-  -n         only list newest matching process
-  -u <usr>   only show matching for user <usr>
-  -l         additionally list command
-  -a         additionally list command + arguments
-
-

Debug newest process

-

For example attach gdb to newest zsh process from $USER.

-
gdb -p $(pgrep -n -u $USER zsh)
-
- -
- - -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3