Sometimes we need to transfer files under Windows with a remote Linux server, it is convenient to use PSCP to transfer files, but it is not easy to transfer multiple files, and it is not easy to see. Read the online tutorial summarizing the process of creating a shared folder:
1. First create a folder in your local Windows system for sharing with a Linux virtual machine, as follows:
2. The process of creating a Linux virtual machine using VirtualBox or VMware Workstation is not mentioned.
3. Once created, the shared folder needs to be set up in VirtualBox or VMware workstation as follows:
4. Start the Linux virtual machine and install the enhanced features:
If the installation fails (the virtual disc could not be loaded), you need to eject the disc in the virtual machine first, as follows:
5. Execute the following command sequentially
sudo Install Samba Smbclient sudo mkdir /pcshare #在虚拟机中创建共享文件夹 sudochmod777 /Pcshare sudomount -t vboxsf share/pcshare #此处的share为windows下的共享文件夹名称, does not require full path under windows!
Now that the shared folder has been created, let's verify that:
As you can see, the file Hello.txt in the directory share under Windows can also be accessed under the virtual machine.
Ubuntu Linux virtual machine with Windows Quick Create shared folder