This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
команды_чтения_содержимого_файлов [2024/02/16 14:44] val [tail] |
команды_чтения_содержимого_файлов [2024/05/11 15:48] (current) val [tail] |
||
---|---|---|---|
Line 18: | Line 18: | ||
===== tail ===== | ===== tail ===== | ||
- | [[http://ru.wikipedia.org/wiki/Tail]] | + | * [[https://ru.wikipedia.org/wiki/Tail]] |
+ | * Сервис SNORT [[Сервис SNORT#Копирование alert_unified2 в syslog]] | ||
<code> | <code> | ||
Line 24: | Line 25: | ||
$ kubectl -n portal get po | tail -n +2 | grep -v "postg" | awk '{print $1}' | xargs kubectl -n portal delete po | $ kubectl -n portal get po | tail -n +2 | grep -v "postg" | awk '{print $1}' | xargs kubectl -n portal delete po | ||
- | |||
- | $ sudo tail -f -n 0 /var/log/auth.log | ||
$ sudo tail -fn0 /var/log/auth.log | stdbuf -o0 grep abcd | while read L; do echo $L | mail -s abcd userX@isp.un; done | $ sudo tail -fn0 /var/log/auth.log | stdbuf -o0 grep abcd | while read L; do echo $L | mail -s abcd userX@isp.un; done |