Mounting a Windows Share from Linux

I’m putting this here as I regularly forget the syntax and wading through the man page for mount isn’t the most transparent. Well it’s probably ok but with the millions of options:

The following is all on one line:
mount -t smbfs -o username=xxx
   //WinShareIPNo/public
   localMountDir

So if I’m a local user on a Linux box, to mount a directory from the Windows running at IP 10.0.0.5 whose share name is Public, and mount it as /mnt/public on the local machine, the command would be:

mount -t smbfs -o username=Mary

      //10.0.0.5/Public

      /mnt/public

This was mainly for me but it might help someone ….