summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-09-29 12:56:38 -0600
committermo khan <mo.khan@gmail.com>2019-09-29 12:56:38 -0600
commit5758c5f3917db9a261805ebf22757ba2cde362de (patch)
treef2fff8d204e00a0b7d39e073baa3705083253a7f
parent868784bd9105b378438b049d3835f7d32968774f (diff)
work on lab 2
-rw-r--r--README.md53
1 files changed, 49 insertions, 4 deletions
diff --git a/README.md b/README.md
index cb94bc3..b3b2331 100644
--- a/README.md
+++ b/README.md
@@ -886,25 +886,70 @@ Your report should include advice to other people attempting to do the same.
2. Read the man page for the shutdown command.
a. How do you shut down the system to a single-user mode? Try it and present results.
- ```bash
- ```
+ ```bash
+ ```
b. What’s difference between single-user mode and how the system normally runs?
- > Single-user mode is a mode where only the administrator (root) has access to the computer, the mode is designed for maintenance and is often used for repairs. - https://www.tldp.org/LDP/GNU-Linux-Tools-Summary/html/x5152.htm
+ > Single-user mode is a mode where only the administrator (root) has access to the computer, the mode is designed for maintenance and is often used for repairs. - https://www.tldp.org/LDP/GNU-Linux-Tools-Summary/html/x5152.htm
c. Explain options in the command “shutdown -t 100 +3 -h”.
+ On a BSD system, the man page says:
+
+ ```text
+ -h The system is halted at the specified time when shutdown execs halt(8).
+ ```
+
+ The `+3` is the time string.
+
+ ```text
+ time time is the time at which shutdown will bring the system down and
+ may be the word now (indicating an immediate shutdown) or specify
+ a future time in one of two formats: +number, or yymmddhhmm,
+ where the year, month, and day may be defaulted to the current
+ system values. The first form brings the system down in number
+ minutes and the second at the absolute time specified.
+ ```
+
+ so this command will halt the computer in 3 minutes.
d. How do you boot into single-user mode?
+
+
+ 1. At the GRUB splash screen at boot time, press any key to enter the GRUB interactive menu.
+ 1. Select Fedora with the version of the kernel that you wish to boot and type `a` to append the line.
+ 1. Go to the end of the line and type `single` as a separate word (press the `Spacebar` and then type `single`). Press `Enter` to exit edit mode.
+
+ - https://docs.fedoraproject.org/en-US/Fedora/13/html/Installation_Guide/s1-rescuemode-booting-single.html
+
e. What, if anything, do you notice that is different about booting into single-user mode compared to shutting down to single-user mode?
f. Shut the system down; then boot it normally. Look in the file /var/log/messages (often /var/adm/messages on some systems). How does the information in the “messages” file compare with what appears on the screen during boot?
3. Linux Startup
a. Run the dmesg command, and list which devices are assigned to each of CD-ROM, HD, and floppy disk.
b. What do you think the following (or a similar line) in dmesg output means?
- Linux version 2.6.5-1.358 (bhcompile@bugs.build.redhat.com) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Sat May 8 09:04:50 DT 2004
+ ```text
+ Linux version 2.6.5-1.358 (bhcompile@bugs.build.redhat.com) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Sat May 8 09:04:50 DT 2004
+ ```
+
+ It means that the system booted up with version `2.6.5-1.358` of the linux kernel.
+ The kernel was compiled with `gcc` version 3.3.3 and the running linux distribution if a flavour of `Red Hat Linux`.
+
c. Is there an Ethernet card detected on the system?
+ Yes.
+
+ ```bash
+ モ lspci | grep Ethernet
+ 00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 04)
+
+ モ dmesg | grep eth0
+ [ 2.658654] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) 10:bf:48:7c:c8:9b
+ [ 2.658655] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
+ [ 2.658689] e1000e 0000:00:19.0 eth0: MAC: 10, PHY: 11, PBA No: FFFFFF-0FF
+ [ 2.659713] e1000e 0000:00:19.0 eno1: renamed from eth0
+ ```
+
## Lab 4
Rootly Powers and Processes