1748169 Members
3903 Online
108758 Solutions
New Discussion юеВ

Init

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

Init

What is the difference between init s , and init S

thanks & regards
Indrajit Bhagat
9898333570
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Init

Shalom

small is is single user mode.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: Init

Both "s" and "S" are single user mode (sort of - for true single user mode you really need to reboot, not just shutdown). The difference between the two is shown in the man page:

"When boot init prompts for the new run level, you can only enter one of the digits 0 through 6 or the letter S or s. If you enter S, boot init operates as previously described in single-user mode with the additional result that /dev/syscon is linked to the user's terminal line, thus making it the logical system console."


Pete

Pete
Yogeeraj_1
Honored Contributor

Re: Init

hi,

see man init

In fact, the arguments have the following effect:

0-6 Place the system in one of the run levels 0 through 6.

a|b|c Process the inittab entries that have the special "run level" a, b, or c, without changing the numeric run level.

Q|q Re-examine the inittab entries without changing the run level.

S|s Enter the single-user environment. When this level change occurs, the logical system console /dev/syscon is changed to the terminal from which the command was executed.


S|s are the same!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
dipesh_2
Regular Advisor
Solution

Re: Init

Hi,



Both commands brings the system to the run level 1 i.e maintanance mode but init S gives the console access from where the command is issued. init s gives the locally connected console.


Regards,
Dipesh
Piergiacomo Perini
Trusted Contributor

Re: Init

Hi,

Dipesh was right !

There is a little but essential difference between "S" and "s" especially if u ar performed maintenance task.

init s pass control on local console,
init S pass control to terminal that issue the comand.

regards
pg