Lesson 7

Dates: 3/5/2014
Start-up and Run Levels. Scheduled jobs (at, cron)
Linux for Engineering and IT Applications


Changing the Run levels


Command telinit triggers the Upstart, which generates the runlevel change event, executes scripts in /etc/init and /etc/init.d/rc for the new runlevel N.

/sbin/telinit N
or

/sbin/init N
where N is a new run level.


/sbin/init 0
is the same as

shutdown -h now 


/sbin/init 6
is the same as

shutdown -r now

To figure out in what Run Level you are, run

who -r
or

/sbin/runlevel 
It shows the previous and the current Run Levels.


Take me to the Course Website