Problem

In this hands-on project, you explore runlevels and the /etc/inittab file used to change...

In this hands-on project, you explore runlevels and the /etc/inittab file used to change runlevels at system startup and afterward.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type runlevel and press Enter. What is your current runlevel? What is the most recent runlevel?

3. At the command prompt, type cat /etc/inittab and press Enter. Which line in this file determines the default runlevel at boot time? Can this be changed?

4. At the command prompt, type init 2 and press Enter. Press Enter again to obtain your command prompt. What was displayed on your terminal screen? Are any daemons started? Are any daemons stopped? Why?

5. Next, type runlevel at the command prompt and press Enter. What is your current runlevel? What is the most recent runlevel?

6. At the command prompt, type init 5 and press Enter. Were daemons started? Was the gdm started?

7. Switch back to tty2 by pressing Ctrl+Alt+F2 and press Enter to obtain your command prompt.

8. Next, type runlevel at the command prompt and press Enter. What is your current runlevel? What is the most recent runlevel?

9. At the command prompt, type init 1 and press Enter. What is displayed on your terminal screen? Are most daemons started or stopped? Why?

10. Next, type runlevel at the command prompt and press Enter. Note that both your current and most recent runlevels refer to single user mode. This is because the process that tracks runlevel is stopped when entering single user mode.

11. At the command prompt, type init 6 and press Enter. What does this command do?

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 8