0

Based on people accessing my site, how do I see which files are not being viewed by visitors (because no inbound links or otherwise)?

2

Save accessed files:

zcat -f /var/log/httpd/*access* | grep -o "GET [^ ?]\+" | cut -c 5- | sort -u > /tmp/accessedfiles

Save existing files:

(cd /var/www/vhosts/SITE/; find) | sort -u | cut -c2- > /tmp/existingfiles

Set subtract:

comm /tmp/accessedfiles /tmp/existingfiles -1 -3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.