This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux-commandline-tips [2019/03/13 00:15] serbizadmin [Find Stuff] |
linux-commandline-tips [2019/10/10 08:31] serbizadmin |
||
---|---|---|---|
Line 37: | Line 37: | ||
cat /dev/null > modsec_audit.log</ | cat /dev/null > modsec_audit.log</ | ||
See also "log rotate" | See also "log rotate" | ||
+ | * remove everything else except... | ||
+ | < | ||
+ | rm -rf !(filename)</ | ||
+ | This works only if extglob is enabled. So | ||
+ | < | ||
+ | shopt -s extglob</ | ||
\\ | \\ | ||
====== PHP====== | ====== PHP====== | ||
Line 47: | Line 53: | ||
php -i | grep in | php -i | grep in | ||
</ | </ | ||
+ | \\ | ||
+ | ====== Log Analysis====== | ||
+ | * limiting by date | ||
+ | |||
+ | sed -n '/ |