Access Windows shares using Samba from command line

apt-get install samba4 to get the latest version of Samba.

apt-get install cifs-utils to get necessary files/utils required to mount Windows shares.

Then do the following:

mkdir /mnt/share

Type the following command to mount the share:

mount -t cifs //windowsmachineip/sharename -o username=user,password=urPassword /mnt/share

On older machines the shares could be mounted as follows:

mount -t smbfs -o username=user,password=urPassword //windowsmachineip/sharename /mnt/share