diff --git a/HowtoCustomLiveCD.md b/HowtoCustomLiveCD.md index ab036256..9f9111af 100644 --- a/HowtoCustomLiveCD.md +++ b/HowtoCustomLiveCD.md @@ -42,7 +42,7 @@ lb config noauto \ --mode "debian" \ --system "live" \ --architectures "amd64" \ ---distribution "jessie" \ +--distribution "jessie" \live-cd-$rand --archive-areas "main contrib non-free" \ --security "true" \ --updates "true" \ @@ -167,6 +167,7 @@ Pour partager le dossier de construction via git, le dossier en lui même est re ~~~ lb clean --all rm -r config/hooks/cache/* +rm -r config/hooks/chroot/* ~~~ ## Gravure diff --git a/TipsShell.md b/TipsShell.md index 7adeb34a..43b1ff5b 100644 --- a/TipsShell.md +++ b/TipsShell.md @@ -312,4 +312,10 @@ Toutes les 5 secondes : ~~~{.bash} $ watch -n 5 -d "ps -e -o etimes=,pid,user,cmd | sort -n | awk '{if (\$1==0 || \$2==$$ || \$3~/watch/ || \$3~/\[.*\]/) {} else print \$0 }'" +~~~ + +Se baser seulement par rapport aux utilisateurs ayant créés dernièrement ces processus (SEUIL <=> processus vieux de moins de $SEUIL secondes) : + +~~~{.bash} +$ SEUIL=100; watch -n 5 -d "ps -e -o etimes=,user | sort -n | awk '{if (\$1<$SEUIL) print \$2 }' | sort | uniq -c | sort -n" ~~~ \ No newline at end of file