Set the shared directory window and linux

Premise, two machines in the same domain following ip

1. The need to install the tool on linux cifs

 rpm -ivh cifs-utils-6.2-10.el7.x86_64.rpm

 

2, create a shared folder on windows

shared

 

Advanced Sharing 

 

3, create a shared directory on linux

mkdir -p /app/share_test

sudo mount -t cifs -o username="xxxxxxx",password="xxxxxx" //133.184.15.36/BaiduNetdiskDownload /mnt/share_test

Enter to view the files in the directory linux

cd /app/share_test

Unmounted

umount /app/share_test

 

Guess you like

Origin www.cnblogs.com/zhangwensi/p/11225286.html