For a plugin for Sublime Text I was required to install a composer package globally.
In order to do this I had to run the following command:
composer glo
Ubuntu 16.04: ~/.composer/vendor
~/.composer/vendor
Ubuntu 18.04: ~/.config/composer/vendor
~/.config/composer/vendor