Problem

In this hands-on project, you view information that is exported by the Linux kernel to t...

In this hands-on project, you view information that is exported by the Linux kernel to the /proc directory.

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 cd /proc and press Enter to change your current directory to /proc. Next, type ls to list the directory contents and examine the output on the terminal screen. Why are the subdirectories named using numbers?

3. At the command prompt, type cat meminfo | less and press Enter to list information about total and available memory. How does the value for total memory (MemTotal) compare with the information from Step 3 in Project 9-4?

4. At the command prompt, type cat swaps and press Enter to list information about total and available swap memory. How does the value for total swap memory (Size) compare with the information from Step 3 in Project 9-4?

5. At the command prompt, type cd 1 and press Enter to enter the subdirectory that contains information about the init daemon (PID = 1).

6. At the command prompt, type ls and press Enter to list the files in the /proc/1 directory. Next, type cat status | less and press Enter. What is the state of the init daemon? Does it list the correct PID and PPID?

7. Type exit and press Enter to log out of your shell.

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 9