School of Lonnie

tail -f httpd-access.log will show my the most recent additions to my log, dynamically.

sockstat -4l will show what services are running (security)

find ./ -name logrotate

tail -f httpd-access.log | awk ‘{print $1}’ was the same as above, but only showed the offending IPs generating the log.


du -sh *

VI Commands

h left
l right
j down
k up
u undo/redo
e goes to the end of the word
set: number will show you what line number your on in a file
CTRL-g shows you where you are in the file
dd deletes a line
dw deletes a word
:args shows you which file you’re editing