Skip to content

Instantly share code, notes, and snippets.

@davebrown
davebrown / gist:9165facc2dd1302bfad0121a626468f8
Last active March 28, 2018 18:25
useful sysadmin commands
# enable service 'filebeat' to run at startup
$ sudo update-rc.d filebeat defaults 95 10
# list all services(?)
$ systemctl list-units --type service
# see what runs on runlevel 5 on a SysV system
$ ls /etc/rc5.d/
# system logs of service