How To Sync Microsoft OneDrive In Linux

How To Sync Microsoft OneDrive In Linux

Insight: How To Sync Microsoft OneDrive In Linux

Microsoft OneDrive is popular cloud storage service similar to Google Drive, DropBox and other cloud storage services.

Despite of being popular service, Microsoft OneDrive official client is not yet available for Linux based platforms. We need to take help of various third party applications to sync OneDrive in Linux. In this post, We will discuss about various OneDrive clients for Linux so that you can sync Microsoft OneDrive in Linux operating systems.

How To Sync Microsoft OneDrive In Linux

We hope that this post will help you answer your few questions like:

  • What are the best unofficial Microsoft OneDrive apps for Linux

  • How To Sync Microsoft OneDrive In Linux

  • Is there OneDrive client for Linux

  • OneDrive sync for Linux

  • Free client for OneDrive on Linux

  • How to automatically sync OneDrive on Linux

  • Using OneDrive with Linux


Let’s start with:


Onedrive is a CLI based client. It is one of the quickest method to sync quickly and easily with OneDrive. Meanwhile, You need to install some dependencies and setup git.

For Ubuntu:

sudo apt install libcurl4-openssl-dev git
sudo apt install libsqlite3-dev

If you are using Ubuntu 18.04 or newer, use snap to install dmd:

sudo snap install --classic dmd && sudo snap install --classic dub

Alternative commands to install OneDrive:

sudo wget -O /etc/apt/sources.list.d/d-apt.list
sudo apt-get update && sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring
sudo apt-get update && sudo apt-get install dmd-compiler dub


For Fedora Operating System:

sudo yum install libcurl-devel git
sudo yum install sqlite-devel
curl -fsS | bash -s dmd


READ THIS ALSO  How To Kill Unresponsive Applications In Ubuntu

Arch Linux Operating System:

sudo pacman -S curl sqlite dlang git

Now, You need to fetch the files with git:

git clone

Now, Compile and install it:

cd onedrive
sudo make install

Run the following command to start it:


Now, Follow onscreen instruction.

2.Bash OneDrive Upload

Bash OneDrive Upload is an another simple tool to upload files to Microsoft OneDrive from Linux. You need to clone using the git command, clone the latest release of Bash OneDrive Upload.

git clone --recursive

Move the terminal into the “bash-onedrive-upload” code folder.

cd bash-onedrive-upload


Now, You need to start onedrive-authorization.



Now, uploading a file to OneDrive with the Bash OneDrive Upload is easy way. You can take reference from the command below to upload one file to your account:

./onedrive-upload file


./onedrive-upload fileName1 fileName2

Or upload an entire directory:

./onedrive-upload /location/of/folder/to/upload

3. OneDrive for Business on Bash

This tool is intended for the business purpose as it supports multiple syncing accounts and also run in the background as a service.

Run the following command to install OneDrive for business on Bash.

sudo -s
wget --no-check-certificate -qO- "" |bash


Now after installing you need to activate the software with the following command:

onedrive -a

Run the following command to start the syncing process.

onedrive start

Stop the syncing process by running:

onedrive stop

Well, This much for now. Let us know if there is something wrong in this article.