How to set up drush on Cloudways / Digital Ocean? I have been experimenting with Cloudways and Digital Ocean as a hosting solution.

I am attempting to set up Drush and have been following some instructions provided by GoDaddy. 

The notes appear up to date and well written - See https://uk.godaddy.com/help/how-to-install-drush-on-cpanel-shared-hosting-12396 . I am not using cPanel but I do not think this should matter.

When entering

echo "alias drush='~/drush/drush'" &gt;&gt; .bashrc


The system returns

echo "alias drush='~/drush/drush'" &gt;&gt; .bashrc
bash: .bashrc: Permission denied


The same also happens with sudo

After continuing with rest of the instructions Drush is now installed but does not seem to be available for the public_html directory. I'm guessing that the GoDaddy instructions are missing a step or are not quite compatible with this environment.

I have provided an example of a Features download (below) and as can be seen, the download is being placed in the drush directory and not sites/all/modules

[master_vkhgjqkyfv]:public_html$ drush dl features
Project features (7.x-2.8) downloaded to /home/master/.drush/features.


Can anybody say what I need to do to get this working properley?
I'd recommend trying the official Drush installation instructions.  Note that the first recommended installation method is to download the phar, which you might find easier to get working than the Composer-based instructions.

The GoDaddy instructions (at the time of this writing) recommend installing the latest unstable version of Drush. This is not recommended unless you are planning on frequently updating Drush, in which case you are better off installing via git rather than downloading an archive.