Useful Systems Commands

From LinuxServerTech

Jump to: navigation, search


Commands Sysadmins need sometimes

The following command will go through the Apache referrer file and return a list of referrers who are A) not the local domain (example.com) and not a search engine (at least not yahoo or google)

cut -d > -f 1 referer.log | grep http | grep -v example.com | grep -v googl | grep -v yahoo | uniq | sort