commit 15d55a10a398d7ced75b380bc8ebaf4da349b166 parent 89a5184540c75f718630567272ab8231002c4773 Author: pyratebeard <root@pyratebeard.net> Date: Wed, 10 May 2023 10:35:28 +0100 updates Diffstat:
M | linux/index.md | | | 1 | + |
A | linux/init.md | | | 11 | +++++++++++ |
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/linux/index.md b/linux/index.md @@ -16,6 +16,7 @@ * [fonts](/linux/fonts) * [i3lock](/linux/i3lock) * [index](/linux/index) +* [init](/linux/init) * [journalctl](/linux/journalctl) * [keymaps](/linux/keymaps) * [logrotate](/linux/logrotate) diff --git a/linux/init.md b/linux/init.md @@ -0,0 +1,11 @@ +# init + +* to check which init program is being used incant +``` +sudo stat /proc/1/exe +``` +* if the file is `/sbin/init` incant +``` +sudo stat /sbin/init +sudo /sbin/init --version +```