Pario TechnoBlob
About
Posts
Tag: awk
Hammer script to get output from Job by id
This is a simple script I use to export the details from a Job run in Red Hat Satellite 6.2 using hammer from the console. #!/bin/bash # Redhat Satellite Job query by id using...
One-liner to mail when someone logs in as root
This is a short post describing how to automatically send an email every time someone logs in as root on a linux server. Add the following line to /root/.bash_profile if you...
My 10 most used linux commands
This is a oneliner bash command to determine my 10 most used linux commands according to my history file history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a]...
Apache web connections pr hour
This is a bash oneliner to show Apache web connections pr hour. It lists up the IPs that has accessed your webserver and the amount og accesses. # cat...
««
«
1
2
3
…
5
»
»»