Skip to content

Instantly share code, notes, and snippets.

@snobu
Created June 26, 2017 09:50
Show Gist options
  • Select an option

  • Save snobu/5ad4959e2706e56a11dc3ab8ca585054 to your computer and use it in GitHub Desktop.

Select an option

Save snobu/5ad4959e2706e56a11dc3ab8ca585054 to your computer and use it in GitHub Desktop.
LFCS-could-happen-to-you
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