Last active
August 29, 2015 14:17
-
-
Save squallstar/0977e37a00fa54a081e9 to your computer and use it in GitHub Desktop.
Unix Cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Search for a string in files | |
grep -r "findme" . | |
# List processes filtered by a string | |
ps -aux | grep httpd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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