28.2. Finding out your current run level

This chapter is not about system administration, but as a shell programmer you should be aware what rc.scripts are and how they fit into run level configuration directories. By the way, if you need to know what your current run level is:

						$ who -r 
   .       run-level 4 Apr 22 13:26   4   0   3
					

The number after the ‘run level’ is the current run level. The date following that is the last time the system was rebooted.

If it’s LINUX then...

							$ runlevel
2 3
						

The first column is the level the system was previously on, and the current one is the second column, which is run level 3.

Get Linux and Unix Shell Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.