one drive linux code example

Example 1: add onedrive to ubuntu

sudo apt-get install onedrive

onedrive

// Authenticate your account on the web
// Copy the response url and paste it

onedrive -m // To sync in real time

onedrive // To sync

Example 2: one drive linux

*BETTER AND MORE CLEAR EXPLANATION THAN THE OTHER ONE*

sudo apt-get install onedrive (USE AUR IF ON ARCH BASED)

// run this command its gonna give you a link open it and paste
it in your browser
onedrive
// Its gonna ask you to log in with your microsoft account and then 
be an empty page. Take the url of that empty page and paste it in 
the terminal where it asks you

onedrive -m // To sync in real time

onedrive // To sync

Example 3: one drive linux

Easiest way use insync