preview

Pt1420 Unit 1 Critical Thinking Assignment

Better Essays

Hands-On Project – Systemctl Command and Managing Runlevels Option 2
This Critical Thinking Assignment focuses on using the Systemctl, runlevel, and init commands that were discussed in this week’s classroom materials. Following the steps in this assignment will demonstrate how these commands can be used from the shell prompt of Linux to manage the boot process and restart options of a test Linux virtual machine (VM). This report will document the process of completing each step and include screenshots where applicable to demonstrate the results of each step.
Systemctl
In order to complete the steps in this week’s critical thinking assignment, the listed commands will all need to be run from a shell prompt within the test Linux VM that was …show more content…

This command asked for elevation and requires the user to enter the root password to complete the command. Upon successful authentication, the system then reboots into rescue mode. Booting the system in this mode allows you to run a different less complete Linux installation instead of booting from the hard drive (Fedora, 2017). This ability can be a very powerful tool that enables a user to repair a boot loader or recover files. The end user must be very careful in this mode however, because you could cause even further damage or cause data loss if you do not know what you are doing. My system rebooted into the GUI and I was able to login normally. I then opened a shell prompt and used the runlevel command to show I was booted into level 1 which is rescue mode. This result is shown in screenshot 5 and 6. I then ran step five which was to use the “systemctl start default.target” command to return the system to the default boot target. Screenshot 7 shows that the command was entered but never completed even after waiting several minutes. I was able to gracefully reboot the VM using the GUI option. After rebooting the VM which was step 6, I verified the system was running in default target mode which in runlevel 5. I did this by running the runlevel command in a shell prompt. The output can be seen in screenshot …show more content…

To accomplish this, I ran the “init 5” command from a shell prompt. Again, I was prompted for elevated privileges and the system rebooted. I verified that I was still in default target mode by running the “runlevel” command and verifying this.
Conclusion
The focus of this week’s Critical Thinking Assignment involved getting familiar with the systemctl, runlevel, and init commands within Linux. By following the steps outlined, I was able to test the effects of each of these commands and document how they can be used to view information about the installation and successfully boot into the different modes offered within Linux. These commands are very useful and demonstrate the power of using the shell prompt to manage the Linux operating

Get Access