How to use “watch” on Mac OSX

In case you are looking for a “watch” command, similar to Linux, for your Mac OSX platform. You can create a shell script which can be used to emulate the similar requirement of what a watch command does on Linux. Create a shell script named “watch” on your path “~username/bin/”, with the following content: #!/bin/sh … Read more

How to clear DNS cache in Mac OSX

Every outgoing DNS request is cached for optimized performance. Its good for faster lookups of the same host but sometimes we will want to clear the cache if the host name no longer points to the earlier IPAddress. To clear the DNS cache in Mac OSX we need to use the “Terminal” application. Type “terminal” … Read more