Created
June 26, 2017 09:50
-
-
Save snobu/5ad4959e2706e56a11dc3ab8ca585054 to your computer and use it in GitHub Desktop.
LFCS-could-happen-to-you
This file contains hidden or 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
| UPSTART | |
| Enabling / Disabling a service | |
| To toggle a service from starting or stopping permanently you would need to: | |
| echo manual | sudo tee /etc/init/SERVICE.override | |
| ------------------------------------------------------------------------ | |
| https://askubuntu.com/questions/19320/how-to-enable-or-disable-services | |
| ------------------------------------------------------------------------ | |
| Grep uncommented lines in config file: | |
| $ grep "^[^#]" /etc/squid3/squid.conf | |
| ------------------------------------------------------------------------ | |
| Get current runlevel | |
| $ who -a | |
| ------------------------------------------------------------------------ | |
| Diff two binaries | |
| $ colordiff -y <(xxd -l 100 /bin/bash) <(xxd -l100 /bin/dash) | |
| ------------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment