Skip to content

Instantly share code, notes, and snippets.

@sumitpore
Created February 7, 2019 08:08
Show Gist options
  • Save sumitpore/18bc04219c90d1460a4b146e5be02003 to your computer and use it in GitHub Desktop.
Save sumitpore/18bc04219c90d1460a4b146e5be02003 to your computer and use it in GitHub Desktop.
How to run multiple commands as a www-data user in terminal
sudo -- sh -c "su www-data -s /bin/sh -c 'cd /var/www/html/test-site && wordmove pull -tpmudv -e staging'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment