Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to access Dropbox through the command line in Linux

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to access Dropbox through the command line in Linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to access Dropbox through the command line in Linux".

In today's multi-device environment, cloud storage is everywhere. No matter where they are, people want to get what they need from cloud storage through a variety of devices. Because of its beautiful UI and cross-platform compatibility, Dropbox has become the most widely used cloud storage service. The popularity of Dropbox has led to the emergence of a series of official or unofficial Dropbox clients that support different operating system platforms.

Of course, the Linux platform also has its own Dropbox client: both command line and graphical interface clients. Dropbox Uploader is an easy-to-use Dropbox command-line client written in the Bash scripting language (yes, you read it right, it's Bash). In this tutorial, I will describe how to use Dropbox Uploader to access Dropbox from the command line in Linux.

Install and configure Dropbox Uploader in Linux

To use Dropbox Uploader, you need to download the script and make it executable.

$wget https://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh $chmod + x dropbox_uploader.sh

Make sure you have curl installed on your system, because Dropbox Uploader runs Dropbox's API through curl.

To configure Dropbox Uploader, simply run dropbox_uploader.sh. When you run this script * times, it will ask for authorization so that the script can access your Dropbox account.

$. / dropbox_uploader.sh

As shown in the figure above, you need to access the https://www.dropbox.com/developers/apps page through a browser and create a new Dropbox app. Then fill in the relevant information about the new app as shown below, and enter the name of the app, which is similar to the app name generated by Dropbox Uploader.

After you have created a new app, you will see app key and app secret on the next page. Please remember them.

Then, enter app key and app secret in the terminal window where dropboxuploader.sh is running. Dropboxuploader.sh will then generate an oAUTH URL (for example, https://www.dropbox.com/1/oauth/authorize?oauth_token=XXXXXXXXXXXX).

Next, access the oAUTH URL through the browser and agree to access your Dropbox account.

This completes the configuration of Dropbox Uploader. To confirm that Dropbox Uploader is really successfully authenticated, run the following command.

$. / dropbox_uploader.sh infoDropbox Uploader v0.12 > Getting info... Name: Dan Nanni UID: XXXXXXXXXX Email: my@email_address Quota: 2048 Mb Used: 13 Mb Free: 2034 Mb

Dropbox Uploader example

To display everything in the root directory, run:

$. / dropbox_uploader.sh list

To list everything in a particular folder, run:

$. / dropbox_uploader.sh list Documents/manuals

To upload a local file to a remote Dropbox folder, use:

$. / dropbox_uploader.sh upload snort.pdf Documents/manuals

To download a remote file locally from Dropbox, use:

$. / dropbox_uploader.sh download Documents/manuals/mysql.pdf. / mysql.pdf

To download a complete remote folder from Dropbox to a local folder, run:

$. / dropbox_uploader.sh download Documents/manuals. / manuals

To create a new remote folder on Dropbox, use:

$. / dropbox_uploader.sh mkdir Documents/whitepapers

To completely delete a remote folder (including everything it contains) in Dropbox, run:

$. / dropbox_uploader.sh delete Documents/manuals Thank you for your reading, the above is the content of "how to access Dropbox through the command line in Linux". After the study of this article, I believe you have a deeper understanding of how to access Dropbox through the command line in Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report