参考链接:How to Share Files Between Windows and Linux
首先在Windows上将要共享的文件夹进行设置,此处略。
然后:
sudo apt-get install cifs-utils
mkdir ~/Desktop/Windows-Share
sudo mount.cifs //WindowsPC/Share /home/geek/Desktop/Windows-Share -o user=geek
sudo mount.cifs: This is just the mount command, set to mount a CIFS (SMB) share.
WindowsPC: This is the name of the Windows computer. Type “This PC” into the Start menu on Windows, right click it, and go to Properties to see your computer name.
//Windows-PC/Share: This is the full path to the shared folder.
/home/geek/Desktop/Windows-Share: This is where we’d like the share to be mounted on the Linux system.
-o user=geek: This is the Windows username that we are using to access the shared folder.
如果提示mount error: could not resolve address for Windows-PC: Unknown error,将Windows-PC换成IP。