sudo mount -t cifs //server/share /mnt/share -o username=user

Category: Local Network & Public Hosting

sudo mount -t cifs //server/share /mnt/share -o username=user

Mount a Windows share with CIFS

This attaches the SMB share //server/share to the local directory /mnt/share, and mount prompts for the password after applying the username option. CIFS mounts need root and the cifs-utils package. Unmount with sudo umount /mnt/share when done.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.