CheatSheet - greenpeace/gpes-check-my-pages GitHub Wiki
Other Unix/MacOS useful commands
Check a file in real time
tail -f httpResponses.csv
Count the number of lines in a file
wc -l httpResponses.csv
Read a file
more httpResponses.csv
Change the IP of a site in your own computer
To test the redirections and URLS of your site before going live.
On your Mac edit /etc/hosts
sudo pico /etc/hosts
At the end of the file add a line with the IP and domain/subdomain of your (not yet launched) site:
35.195.30.204 www.greenpeace.org
Save the file.
Clear your browser and computer's cache:
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
Check for http file URLS in https sites
./check-my-pages -urls=crawledurls.csv -cssjspattern -mediapattern -pattern='http://.*'