How to refresh ‘locate’ database


Warning: in_array() expects parameter 2 to be array, string given in /usr/local/4admin/apache/vhosts/tarlink.com/httpdocs/wp-content/plugins/facebook-button-plugin/facebook-button-plugin.php on line 244

Warning: in_array() expects parameter 2 to be array, string given in /usr/local/4admin/apache/vhosts/tarlink.com/httpdocs/wp-content/plugins/facebook-button-plugin/facebook-button-plugin.php on line 246

From time to time you want to use ‘locate’ command on linux or unix system, but you can’t find what you’re looking for. It is time to update your database. Below I posted how to do it for linux and…

Flush DNS cache


Warning: in_array() expects parameter 2 to be array, string given in /usr/local/4admin/apache/vhosts/tarlink.com/httpdocs/wp-content/plugins/facebook-button-plugin/facebook-button-plugin.php on line 244

Warning: in_array() expects parameter 2 to be array, string given in /usr/local/4admin/apache/vhosts/tarlink.com/httpdocs/wp-content/plugins/facebook-button-plugin/facebook-button-plugin.php on line 246

Windows ipconfig /flushdns Macintosh OS X sudo dscacheutil -flushcache sudo killall -HUP mDNSResponder Linux (depend on distribution) /etc/rc.d/init.d/nscd restart /etc/init.d/nscd restart /etc/init.d/dnsmasq restart /etc/init.d/named restart