Pario TechnoBlob
About
Posts
Posts
Lesing av nagios.log
perl -pe 's/(\d+)/localtime($1)/e' nagios.
Mounting ISO Files
ISO images are files containing the data of a CD (almost bit per bit). They can be mounted, using the loopback device. ISO images can only be mounted read-only (use mkisofs to...
Monitoring /var/log/secure for break-in attempts
date >> ssh-intruders.log ; cat /var/log/secure | grep -i "sshd.
authentication failure" | sort | awk '{FS="rhost="; print $2}' | awk...
Find all web pages that reference to www.example.com
find / -name '*html' -print \ | xargs grep -l 'www.example.com' \ | less -Opages
««
«
1
2
3
…
93
94
95
…
126
»
»»