From 1cf9fda3ee268ab50e3e2ec2a0e4d17b96414ba4 Mon Sep 17 00:00:00 2001 From: Frank Dietrich Date: Thu, 23 Nov 2017 12:53:54 +0100 Subject: [PATCH 1/4] add examples for current user processes #fixes 1610 --- pages/common/ps.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/ps.md b/pages/common/ps.md index 61601c27d..844211e04 100644 --- a/pages/common/ps.md +++ b/pages/common/ps.md @@ -13,3 +13,11 @@ - Search for a process that matches a string: `ps aux | grep {{string}}` + +- List all processes of the current user in extra full format + +`ps --user $(id --user) -F` + +- List all processes of the current user as ASCII art process hierarchy + +`ps --user $(id --user) f` From 9592b58954b51725224996bb640098520d7f38af Mon Sep 17 00:00:00 2001 From: Frank Dietrich Date: Thu, 23 Nov 2017 13:01:50 +0100 Subject: [PATCH 2/4] fix example description --- pages/common/ps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/ps.md b/pages/common/ps.md index 844211e04..2417b9043 100644 --- a/pages/common/ps.md +++ b/pages/common/ps.md @@ -14,10 +14,10 @@ `ps aux | grep {{string}}` -- List all processes of the current user in extra full format +- List all processes of the current user in extra full format: `ps --user $(id --user) -F` -- List all processes of the current user as ASCII art process hierarchy +- List all processes of the current user as ASCII art process hierarchy: `ps --user $(id --user) f` From ded5c11e43e961d2dd3e27e09a945b697d653085 Mon Sep 17 00:00:00 2001 From: Frank Dietrich Date: Fri, 24 Nov 2017 12:50:38 +0100 Subject: [PATCH 3/4] amend based on the PR comments --- pages/common/ps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/ps.md b/pages/common/ps.md index 2417b9043..a31d04fac 100644 --- a/pages/common/ps.md +++ b/pages/common/ps.md @@ -18,6 +18,6 @@ `ps --user $(id --user) -F` -- List all processes of the current user as ASCII art process hierarchy: +- List all processes of the current user as a tree: `ps --user $(id --user) f` From 9ec1c1f4a5ad7bbb3348ef864fad857e4a8f4927 Mon Sep 17 00:00:00 2001 From: Frank Dietrich Date: Fri, 24 Nov 2017 13:04:02 +0100 Subject: [PATCH 4/4] user short option for `id` command --- pages/common/ps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/ps.md b/pages/common/ps.md index a31d04fac..f6c5e4f7c 100644 --- a/pages/common/ps.md +++ b/pages/common/ps.md @@ -16,8 +16,8 @@ - List all processes of the current user in extra full format: -`ps --user $(id --user) -F` +`ps --user $(id -u) -F` - List all processes of the current user as a tree: -`ps --user $(id --user) f` +`ps --user $(id -u) f`