Mount a Samba/CIFS/SMB share on Linux

Create this script in e.g. your local ~/bin/ directory.

#!/bin/bash

echo "Mount /theserver/kevsan to /media/kevsan/mymountpoint"
sudo mount -t cifs -o uid=kevsan,username=kevsan //theserver/kevsan /media/kevsan/mymountpoint