Skip to content

Instantly share code, notes, and snippets.

@squallstar
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squallstar/0977e37a00fa54a081e9 to your computer and use it in GitHub Desktop.
Save squallstar/0977e37a00fa54a081e9 to your computer and use it in GitHub Desktop.
Unix Cheatsheet
# Search for a string in files
grep -r "findme" .
# List processes filtered by a string
ps -aux | grep httpd
# Executing a command with sudo, giving the password as stdin
echo mypassword | sudo -S mycommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment