• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 25 pages
Exam (elaborations)

Linux Test #2 Chapters 4-7

Document preview thumbnail
Preview 3 out of 25 pages

4.3.3 In this lab, your task is to: Use the systemctl command to make t the current target.After changing to t, log back in as root using 1worm4b8 as the password. Complete this lab as follows: At the prompt, type systemctl isolate t and press Enter to change the runlevel to t. Enter the password 1worm4b8 and press Enter to log in to the root account after changing the current target. 4.2.8 Configure Dual Boot The IT manager has asked you to set up dual boot capabilities on a Linux system so the system boots to Windows 10 by default, but can also boot to Linux. There is an external hard drive connected to this system with Windows 10 installed on it. In this lab, you will configure GRUB 2 to add a Windows 10 menu option and make it the default boot option. In this lab, your task is to: Change the default menu option for the GRUB2 boot loader to Windows 10. Use the grub2-mkconfig command to make the 30_os-prober script find the Windows 10 operating system on the external hard drive and add it as an entry in the boot menu. Reboot the machine and select the Windows 10 option from the boot menu. Only the Windows 10 splash screen will display. 1. At the prompt, type vi /etc/default/grub and press Enter to open the GRUB2 configuration file. 2. Press i to change to vi insert mode. 3. Change the third line of the file to GRUB_DEFAULT=Windows 10. 4. Press the Esc key to leave insert mode. 5. Type :wq and press Enter to save the changes. 6. Type grub2-mkconfig -o /boot/grub2/ and press Enter to write the boot loader changes to the file. 7. Type reboot and press Enter to see the changes made to the GRUB menu. 8. Select Windows 10 from the boot menu. Previous Play Next Rewind 10 seconds Move forward 10 seconds Unmute 0:00 / 0:15 Full screen Brainpower Read More 4.2.7 Set the GRUB Timeout The IT manager in your organization has asked you to change the GRUB_TIMEOUT parameter from 5 seconds to 10 seconds to give users more time to make a menu selection from the GRUB menu before the default operating system is booted. In this lab, your task is to: Change the GRUB_TIMEOUT parameter from 5 seconds to 10 seconds. Reboot the operating system to verify the changes made to the wait time from the GRUB menu. Log in with the username root and the password 1worm4b8. At the prompt, type vi /etc/default/grub and press Enter to open the GRUB2 configuration file for editing. Press i to change to vi insert mode. Change the first line of the file to GRUB_TIMEOUT=10. Press the Esc key to leave insert mode. Type :wq and press Enter to save the changes. Type grub2-mkconfig -o /boot/grub2/ and press Enter to write the boot loader changes to the file. Type reboot and press Enter to see the changes made to the wait time from the GRUB menu. Type root for the user. Type 1worm4b8 as the root password and press Enter. 4.3.4 In this lab, your task is to: Use the systemctl command to make t the default boot target. Use systemctl get-default to verify that the current default target is t. Complete this lab as follows: At the prompt, type systemctl set-default t and press Enter to change the default boot target to t. Type systemctl get-default and press Enter to verify that the current default target is t. 4.4.8 In this lab, your task is to: Use the systemctl command to start ce. Use the systemctl command to stop ce. Use the systemctl command to restart ce. Complete this lab as follows: 1-At the prompt, type systemctl start ce and press Enter to start ce. 2- Type systemctl stop ce and press Enter to stop ce. 3- Type systemctl restart ce and press Enter to restart ce. 4.4.9 In this lab, your task is to complete the following: Use the systemctl command to enable ce. Use the systemctl command to disable ce. After each command, check the service status with the systemctl is-enabled command. Complete this lab as follows: At the prompt, type systemctl enable ce and press Enter to enable ce. Type systemctl disable ce and press Enter to disable ce. Type systemctl is-enabled service_name and press Enter to check the service status. 6.1.4 Install an RPM Package In this lab, your task is to complete the following: Switch to the root user using a password of 1worm4b8. You must have root user permissions to install packages. Use the rpm -ivh command to install the package.The package is located in the /home/wadams/Downloads directory. Verify that the fontconfig package has been installed. Complete this lab as follows: At the prompt, type su - and press Enter. Type 1worm4b8 as the password and press Enter. Type rpm -ivh /home/wadams/Downloads/ and press Enter. Type rpm -q fontconfig and press Enter to verify that the package is installed 4.5.5 - Shut Down Immediately The power has gone out in your facility. You have a UPS (uninterruptible power source) that protects your system and provides enough power to allow you to shut down safely. In this lab, your task is to immediately shut down the system using the command line. 1. At the prompt, type shutdown -h now halt to immediately shut down the system. 2. Press Enter. 4.5.6 Shut Down with Notification The power has gone out in your facility. You have a UPS (uninterruptible power source) that protects your system and provides enough power to allow you to shut down safely. In this lab, your task is to immediately shut down the system using the command line. 1.At the prompt, type shutdown -h +15 It is time for a shutdown! to send a message to logged-in users, wait 15 minutes, and shut down the system. 2. Press Enter. 4.5.7 Shut Down and Reboot Lab You've encountered system problems that require you to reboot the system. You want to inform users that the system will shut down and reboot. In this lab, your task is to send a command to reboot the system in 5 minutes. 1. At the prompt, type shutdown -r +5. 2. Press Enter to send the default message to logged-in users, give them 5 minutes to disconnect, and reboot the system. 6.1.5 Remove an RPM Package In this lab, your task is to: Uninstall the ddd-C-D15 package. Verify that the ddd-C-D15 package is uninstalled. Complete this lab as follows: At the prompt, type rpm -e ddd-C-Debug and press Enter to uninstall the package. Type rpm -q ddd-C-Debug and press Enter to verify that the package is installed. 6.1.6 Update an RPM Package n this lab, your task is to upgrade the kernel tools package using the new package version . Complete this lab as follows:


Document information

Uploaded on
July 24, 2024
Number of pages
25
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BRAINBOOSTERS
4.5
(356)
Sold
806
Followers
258
Items
26245
Last sold
14 hours ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.