Linux下挂载windows的共享文件夹

环境说明:

由于领导要求:现需要将某Linux服务器下的一个文件移动到某windows服务器下(服务器均在机房托管,要远程操作)

由于操作为一次性,则决定在windows下建立一个共享文件夹,linux访问并把文件移动过去

一、在windows下新建一个文件夹并共享

二、在linux下用mount命令进行挂载上去

mount -t cifs -o username=administrator,password=****** //172.16.222.230/gongxiang /data

参数介绍:mount -t 类型 -o 挂载方式 username=用户名,password=密码  //windows的IP地址/共享文件的名称  /要挂载到哪个目录

三、挂载上后移动数据

四、移动完成后关闭共享

mount命令详细介绍:

http://man.linuxde.net/mount

https://blog.csdn.net/u013525455/article/details/53543821

原文地址:https://www.cnblogs.com/chuyiwang/p/9044766.html