Mount Windows File Share in CentOS

Simple command if you wish to mount Windows file share on CentOS / Red Hat.

Command is:

mount -t cifs -o username=admin,password=enteryourpass //192.168.22.2/Documents /mnt

Command explained:

cifs – fileshare type

username – user that has rights on file share

password – password of a user that has rights on fileshare

//192.168.22.2/Documents – network path we want to mount and access on our CentOS installation

/mnt – point to whic file share will be mounted on or system