File sharing in Linux is quite easy if we follow the proper steps. Without taking time just follow the following steps. This steps is followed in Linuxmint but as possible you can use the same way in another distro as well.
First of all install the samba and its related packages. When you enter '*' on the end then it includes all related packages from the library.
$ sudo apt install samba*
Then enable samba in firewall
$ sudo ufw allow Samba
$ sudo useradd suman
$ sudo passwd Suman@123

$ sudo smbpasswd -a suman
then enter the password for 'suman'.
> Now or any time just right click the folder you wish to share and click the sharing option.
> Switch on the option Share this folder.
>Now you can open the folder using smb://<IP address> in linux and \\<ipaddress> on windows.
Work is done. enjoy the sharing..
EmoticonEmoticon