I'm using CentOS. Is there a way to get the unused space in my Dropbox account using the command line?
You can use the Dropbox API to get your current usage. Download the Python SDK (and make sure you have Python installed). In the examples folder of the SDK there is a
There does not seem to be an official solution for this. You can however use
Some example scripts doing a similar thing can be found on this page. Just calculate the difference instead of the percentage.
I would use
Also note that this solution only works if you sync your complete Dropbox on the PC in question. If you use selective sync, you must approximate the space used by folders not present on this system. This makes the system unreliable. As a workaround you could have a cronjob that writes the sizes of other folders into a file in your dropbox and use this file for your calculations.