O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required