15d55a10a398d7ced75b380bc8ebaf4da349b166
linux/index.md
... | ... | @@ -16,6 +16,7 @@ |
16 | 16 | * [fonts](/linux/fonts) |
17 | 17 | * [i3lock](/linux/i3lock) |
18 | 18 | * [index](/linux/index) |
19 | +* [init](/linux/init) |
|
19 | 20 | * [journalctl](/linux/journalctl) |
20 | 21 | * [keymaps](/linux/keymaps) |
21 | 22 | * [logrotate](/linux/logrotate) |
linux/init.md
... | ... | @@ -0,0 +1,11 @@ |
1 | +# init |
|
2 | + |
|
3 | +* to check which init program is being used incant |
|
4 | +``` |
|
5 | +sudo stat /proc/1/exe |
|
6 | +``` |
|
7 | +* if the file is `/sbin/init` incant |
|
8 | +``` |
|
9 | +sudo stat /sbin/init |
|
10 | +sudo /sbin/init --version |
|
11 | +``` |