command init seems to be the first process running after each booting.
If I init in my Ubuntu Gnome terminal, will that restart my OS?
Thanks!
|
command If I Thanks! |
||||
|
|
|
If you're not root (and you shouldn't normally be logging in as root), you'll just get a message:
if you are root, you can change the current run level of the system using init (it actually runs "telinit" to make the change).
if you really want to reboot your system, you can do it by telling init to switch to run level six:
(I'm not actually going to do this because I don't want to really reboot my machine.) For future reference, all of this stuff is well described in the man pages. Try running |
|||||
|