Skip to content

Instantly share code, notes, and snippets.

@marczhermo
Created May 3, 2014 11:17
Show Gist options
  • Save marczhermo/11495993 to your computer and use it in GitHub Desktop.
Save marczhermo/11495993 to your computer and use it in GitHub Desktop.
echo and tee command
echo "<?php phpinfo(); ?>" | sudo tee /var/www/test.php > /dev/null && sudo chgrp www-data /var/www/test.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment