From a548a569f34fbc83a17c1a51d4ae4bf4b85db866 Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Wed, 5 Apr 2017 14:42:17 +0200 Subject: [PATCH] lister utilisateurs --- TipsShell.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/TipsShell.md b/TipsShell.md index fb53c9f0..10943664 100644 --- a/TipsShell.md +++ b/TipsShell.md @@ -167,6 +167,14 @@ $ find DIR/ -type f -mtime +30 -delete $ find DIR/ -type f -mtime +30 -exec rm '{}' \; ~~~ +## Utilisateurs UNIX + +### Lister les utilisateurs + groupe + +~~~{.bash} +$ for user in $(getent passwd | awk -F ':' '$3 > 10000 {printf $1 " "}'); do groups $user; done +~~~ + ## Serveur web ### Avoir un rendu des requêtes par IP à partir d'un access.log