If you want to share files between your Ubuntu and Windows computers, your best option is to use Samba file sharing.
Step 1: To install, first open a terminal window and enter the following command:
sudo apt-get install samba smbfs
Step 2 :We’ve got samba installed, but now we’ll need to configure it to make it accessible. Run the following command to open the configuration file, substituting your editor of choice:
sudo gedit /etc/samba/smb.conf