From a7cc3ac7809e6cfb9b1a0af9668cbc8e006a658b Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Tue, 18 Apr 2017 12:23:42 +0200 Subject: [PATCH] ajout 'user' --- TipsShell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TipsShell.md b/TipsShell.md index 630ebc7e..7adeb34a 100644 --- a/TipsShell.md +++ b/TipsShell.md @@ -311,5 +311,5 @@ $ ps -e -o etimes=,pid,cmd | sort -rn | awk '{if ($1!=0 && $3!~/\[.*\]/) print Toutes les 5 secondes : ~~~{.bash} -$ watch -n 5 -d "ps -e -o etimes=,pid,cmd | sort -n | awk '{if (\$1==0 || \$2==$$ || \$3~/watch/ || \$3~/\[.*\]/) {} else print \$0 }'" +$ watch -n 5 -d "ps -e -o etimes=,pid,user,cmd | sort -n | awk '{if (\$1==0 || \$2==$$ || \$3~/watch/ || \$3~/\[.*\]/) {} else print \$0 }'" ~~~ \ No newline at end of file