How to Access OneDrive on Ubuntu
1. Install OneDrive Client for Linux
While there isn’t an official OneDrive app for Linux, you can use the OneDrive Client for Linux, which is compatible with all major Linux distributions. This client provides features like state caching, real-time file monitoring, and syncing. Here’s how to install it:
- Open a terminal on your Ubuntu machine.
- Add the OpenSuSE Build Service Repository key:
wget -qO - https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /usr/share/keyrings/obs-onedrive.gpg > /dev/null
- Install the OneDrive Client:
sudo sh -c "echo 'deb [signed-by=/usr/share/keyrings/obs-onedrive.gpg] https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04/ /' > /etc/apt/sources.list.d/onedrive.list" sudo apt update sudo apt install onedrive
2. Authorize OneDrive
- Run the OneDrive client:
onedrive
- Copy the link provided in the output.
- Paste the link into your browser and authorize the OneDrive application using your account.
- Click “Yes” to grant the necessary access.
3. Sync Your Files
Once authorized, the OneDrive Client for Linux will sync your files and folders between your Ubuntu device and your OneDrive account. You’ll have seamless access to your data right from your Linux file manager. Use below command to sync the folder if needed
onedrive destination-directory [FILEPATH] –synchronize
To see the Sync status use below command
onedrive display-sync-status