Mount windows shared folder from linux

linux

To mount a Windows share in Linux, one typically uses the mount command with the cifs filesystem type, specifying the remote Windows share’s path, the local mount point, and authentication credentials

By mounting a Windows share in Linux, users can effortlessly copy, edit, and manipulate files, ensuring smooth collaboration across heterogeneous computing environments.


Command

# mount --verbose -t cifs -o username=<username> '//<windowsIP>/<folder>' </local/path>

Explanation

  1. mount will instruct the OS to attached a filesystem to a specific mount point.
  2. The --verbose is mentioned specifically to output the progress or any error or warning message.
  3. Defining filesytem type with -t, followed by filesystem type.
  4. If authentication is needed, -o username= can be used.