systemd

Am I running systemd or good old init?

To determine whether or not you're using old school, System V init or systemd (or a mix!), do the following:

$cat/proc/1/comm
systemd
$ls-l/sbin/init
lrwxrwxrwx1rootroot20May2608:07/sbin/init->/lib/systemd/systemd

Here, the system is using systemd.

If System V was in use, "init" would be printed in the first command and the latter command would show no symlink to systemd.

List all systemd available services

$ systemctl list-unit-files

You can grep for enabled and running to narrow down your search.


~ /home 🏠 ~ talks πŸ’¬ ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv πŸ§™ ~

Licensed under CC BY Creative Commons License ~ πŸ“‘ RSS feed ~ βœ‰ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ πŸŽ₯ youtube.com/@skybert

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /