January 6, 2009

Flushing your DNS cache in Mac OS X 10.5.x Leopard

Simply run

dscacheutil -flushcache

in the Terminal. (/Applications/Utilities/Terminal.app)

If you are running a version of Mac older than Leopard, such as 10.3 Panther, or 10.4 Tiger, the command is a little different:

lookupd -flushcache

October 10, 2008

Mounting a Samba (SMB) Share in CentOS

Need to mount a samba share on your CentOS server from the command line?

Create a directory on the root:

mkdir /sharename

Then mount the share:

mount -t cifs //<servername>/<sharename> /sharename

if you type df -h you should see that your share is now mounted on the mountpoint that you created earlier.