Booted Into: Unix-Like Operating System
Booted Into: Unix-Like Operating System
The runlevelexecutable file(i.e., the ready-torun form of the program) is typically located in
the/sbindirectory, which contains mostly
administrative tools and which by default is not
in the user'sPATH(i.e., the list of directories in
which the system searches for programs). Thus,
it is usually necessary to type thefull pathof
the command as shown above rather than just
the name of the command itself.
The default runlevel for a system is specified in
the/etc/inittabfile, which will contain an entry
such asid:3:initdefault:if the system starts in
runlevel 3, orid:5:initdefault:if it starts in
runlevel 5. This file can be easily (and safely)
read with a command such ascat, i.e.,
cat /etc/inittab