From 245105172a29f39c362c67d5b393fb1ea6e1d50c Mon Sep 17 00:00:00 2001 From: Sri Harsha Kappala Date: Mon, 3 Oct 2016 17:33:01 +0530 Subject: [PATCH] Add usage of ps aux | grep --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 42f45d9..efdaa1f 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,8 @@ Notes: - `pstree -p` is a helpful display of the process tree. +- Grep the output of `ps aux` to know the pid of a process, like `ps aux | grep postgresql` + - Use `pgrep` and `pkill` to find or signal processes by name (`-f` is helpful). - Know the various signals you can send processes. For example, to suspend a process, use `kill -STOP [pid]`. For the full list, see `man 7 signal`