When you enable file sharing on macOS, your Mac can share files with other devices, including Linux machines. Head to System ...
This involves installing Samba on your version of Linux, adding yourself as a Samba user, then creating a Samba configuration file (smb.conf) and adding your shares.