Recently i had a customer who wanted to upload a File on SharePoint.
I've done something similar with PowerShell on Windows and Azure Automation.
Upload file to SharePoint Online with PnP.PowerShell
Install PowerShell on Linux
As i have a CentOS8 available i did test that. There is a specific Docs from Microsoft that explains how to Install PowerShell on CentOS
Installing PowerShell on CentOS
rpm -i https://github.com/PowerShell/PowerShell/releases/download/v7.2.4/powershell-lts-7.2.4-1.rh.x86_64.rpm
Great PowerShell 7 is installed. Now we need to install the PnP.PowerShell
I've created the Script and only changed the Path from the CSV. Upload is sucessfull and the File on Sharepoint has really changed.