What init 1 command exactly does?

Ahsan

Well to be honest I love finding Loopholes in everything, I was watching a TV Serial Mr Robot and at some point a character mentioned init 1 command, that her computer started crashing again and again and she lost her mind after using that command. I am studying OS and I'm a beginner, I tried googling it and I've also checked many forums to get to know what this command actually does is.

All I know is Linux have 0-6 run levels and init 1 is one of them, someone also mentioned that it freezes the computer, but I've not found the exact answer to my question that what this command actually does and how it works? And should I try it on my Computer?

George Udosen
ID  Name                                   Description
0   Halt                                   Shuts down the system.
1   Single-user mode                       Mode for administrative tasks.
2   Multi-user mode                        Does not configure network interfaces and does not export networks services.
3   Multi-user mode with networking        Starts the system normally.
4   Not used/user-definable                For special purposes.
5   Start the system normally with         Same as runlevel 3 + display manager.
    appropriate display manager (with GUI)                                         
6   Reboot                                 Reboots the system.

As you can see from the above each runlevel has what commands and programs run when started by user or any other process, as in the case of runlevel 1. Here only a single user can access the system and the commands here are barest at minimum, hence the comment that it freezes the system. Most commands you know in the 3-5 runlevel are not available here.

If you try entering this level from your current runlevel, you will see that a lot of things will not work and you most likely lose data in any open files or programs. Best tried on a virtual machine to see what it does.

Basically in Linux every runlevel is associated with certain programs or programs are associated with various runlevels. So entering that level with init 1 will kill all programs that are not designed or meant to be in that runlevel, hence the computer freeze mentioned by you.

Source: https://en.wikipedia.org/wiki/Runlevel

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What init 1 command exactly does?

From Dev

What exactly does init do?

From Dev

What does this command do, exactly?

From Dev

what exactly does the rvm install command do

From Dev

What exactly does the dd command do?

From Dev

what does "usb start" command do exactly?

From Dev

What does the ioctl CDROMPLAYMSF command do exactly?

From Dev

What does the command pkill -USR1 -n -x dd mean exactly?

From Dev

What does initializing the arrays to -1 do exactly?

From Dev

What exactly does the "p" option of the `command` command in the bash shell do?

From Dev

What does the eclipse command-line argument "-clean" exactly does?

From Dev

What exactly does --no-debug parameter for the clear:cache command

From Dev

How do I find out what a linux command does exactly?

From Dev

What does exactly *.* mean when used in IMAP command?

From Dev

What does `/profile` switch of Windows `runas` command exactly load?

From Dev

What does `args` in Linux command `ps ao args` means exactly?

From Dev

What does env_variable=value && command exactly do

From Dev

What does &**this return exactly?

From Dev

What Exactly does => mean?

From Dev

What does this do exactly?

From Dev

What exactly does -1 refresh_interval in Elasticsearch mean?

From Dev

What does `sub bar { +{$_[1] => $_[2]} }` exactly do?

From Dev

What does echo $((2#$1)) exactly do?

From Dev

What exactly does `iwconfig wlan1 essid "myWifi"` do?

From Dev

What exactly is #^:_1

From Dev

What does `init [2]` mean in the COMMAND column of ps?

From Dev

init.d - what does the reconfigure command do?

From Dev

What are exactly mknod command parameters?

From Dev

what does this linux command do: "cd !!:1"

Related Related

HotTag

Archive