Home >Operation and Maintenance >Linux Operation and Maintenance >How to mount a remote Windows share on Linux
We need to know about shared folders and be able to use them at any time. This is useful for accessing remote directories from any system connected through the same network. We can also mount these remote shares on Linux systems and use them as local File system. This article will help you use the command line to install a remote Windows shared directory on a Linux system.
Mounting a remote Windows share on Linux
Use the following steps to mount a remote Windows share on a Linux file system hierarchy Shared directory. For this command, you must have the following: 1) remote system IP or FQDN, 2) remote share name, 3) username and password for authentication.
Create a mount point – You can use any existing directory to mount the remote share, or create a separate directory to mount the remote share directory.
$ mkdir / mnt / win1
Mount remote share – Now use the following command to mount the remote share directory on your local file system.
$ mount -t cifs //10.10.1.100/share -o username=myUser,password=myPassword /mnt/win1
Command explanation:
-t cifs:-The file system type to be mounted. Earlier versions of operating systems used SMBFS
-o:- used to pass command line options to mount the command, for example in the above command we passed the username and password required to connect to the remote share in the command .
//10.10.1.100/share:-The IP address and share name of the remote Windows 2000/NT system
/mnt/win1:-Linux installation point where we can access remote files
This article has ended here. For more exciting content, you can pay attention to other related column tutorials on the php Chinese website! ! !
The above is the detailed content of How to mount a remote Windows share on Linux. For more information, please follow other related articles on the PHP Chinese website!