📜  google drive linux - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:01:02.819000             🧑  作者: Mango

Google Drive Linux - Shell-Bash

If you use Linux, you might wonder if Google Drive can work on it. The answer is yes! Thanks to third-party software like google-drive-ocamlfuse, you can mount your Google Drive as a folder on your Linux machine.

Prerequisites
  • Access to a Google Drive account
  • A Linux machine
  • Root privileges to install software
Installation
  1. Install google-drive-ocamlfuse using your package manager.

    sudo apt-get install google-drive-ocamlfuse  # Debian, Ubuntu
    sudo dnf install google-drive-ocamlfuse      # Fedora, RHEL, CentOS
    
  2. Authenticate your Google Drive account.

    Run the following command to generate a token for google-drive-ocamlfuse to access your Google Drive.

    google-drive-ocamlfuse
    

    Follow the prompts to login and allow access.

Usage

To mount your Google Drive as a folder in your home directory, use the following command:

google-drive-ocamlfuse ~/GoogleDrive

You can then access your Google Drive files in the ~/GoogleDrive folder on your Linux machine. Any changes made to files in this folder will be synced with your Google Drive.

Conclusion

Using google-drive-ocamlfuse, you can easily access and sync your Google Drive files on your Linux machine. Enjoy the convenience of cloud storage without having to leave your command line!