A.@.! Linux Pro Domain 1: Sysytem Administration and Configuration

Ace your homework & exams now with Quizwiz!

Your company wants to implement a local search engine for your intranet. The htdig software found in the repositories will provide the needed functions. Complete this lab from the Terminal. In this lab, your task is to: Check for updates. Install the latest version of htdig on your Debian-based machine.

apt update apt install htdig y

The IT manager in your organization has asked you to change the GRUB_TIMEOUT parameter from 5 seconds to 10 seconds in order 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. Write the new GRUB settings to the grub.cfg file. Reboot the operating system to verify the changes made to the wait time from the GRUB menu. (Optional) Log in as root using 1worm4b8 as the password.

1. Change the GRUB_TIMEOUT parameter. a. From the prompt, type nano /etc/default/grub and press Enter to open the GRUB2 configuration file for editing. b. Use GRUB_TIMEOUT=10 as the new first line of the file. c. Press Ctrl + X to exit the editor. d. Type Y to save the modified buffer. e.Press Enter to save the file with the default name. 2. Write the new GRUB settings to the grub.cfg file. a. From the Terminal prompt, type update-grub and press Enter to write the boot loader changes to the grub.cfg file. 3. Reboot the operating system. a. Type reboot and press Enter to see the changes made to the wait time from the GRUB menu. Notice that the system waits 10 seconds before the OS loads. b. (Optional) Log in as root using 1worm4b8 as the password.

You have been having difficulties with some of your applications running properly on your Linux system. You suspect that some of your environment variables may not be configured correctly. Complete this lab from the Terminal. In this lab, your task is to: View the value of the following environment variables: HOME LANG SHELL TERM Answer the questions.

echo $ENVIRONMENTAL-VARIABLE

You are the system administrator, and your Linux server is not functioning properly. To begin your troubleshooting process, you have decided to boot your server into rescue mode. In this lab, your task is to: Set the default target to rescue.target. Verify that the current default target is rescue.target.

systemctl set-default rescue.target systemctl get-default

While working on your Linux server, you want to practice starting, stopping, and restarting a service using the systemctl command. In this lab, your task is to: Use the systemctl command to start bluetooth.service. Use the systemctl command to stop bluetooth.service. Use the systemctl command to restart bluetooth.service.

systemctl start bluetooth.service systemctl stop bluetooth.service systemctl restart bluetooth.service

The IT manager has asked you to set up dual-boot capabilities on a Linux system so that the system boots to Windows 10 by default, but can also boot to Linux if needed. There's an external hard drive connected to this system with Windows 10 installed. You need to configure GRUB2 to have your system boot to the Windows operating system by default. In this lab, your task is to: Change the default menu option for the GRUB2 boot loader to Windows 10. Write the new GRUB settings to the grub.cfg file. Reboot the machine and confirm that it boots to the Windows 10 operating system by default.

1. Change the default menu option for the GRUB2 boot loader to Windows 10. a. At the prompt, type nano /etc/default/grub and press Enter to open the GRUB2 configuration file. b.Make GRUB_DEFAULT=Windows 10 the new third line of the file. c.Press Ctrl + x to exit the editor. d. Type y to save the modified buffer. e. Press Enter to write the file using the default name. 2. Write the new GRUB settings to the grub.cfg file. a. At the terminal prompt, type grub2-mkconfig -o /boot/grub2/grub.cfg and press Enter to write the boot loader changes to the grub.cfg file. Reboot the operating system to Windows 10. a. Type reboot and press Enter. b. Wait for 5 seconds to let the system boot to Windows 10 by default.

You are the IT administrator for a small corporate network. You want to run a task that will automatically update one of your databases on a regular basis. Complete this lab from the Terminal. In this lab, your task is to: Create a crontab file for the root user. Add parameters to the file that will run the /bin/updatedb command every Tuesday and Saturday at 2:30 a.m.

1. Check to see if the root user currently has a crontab file created. a. From the Favorites bar, select Terminal. b. At the prompt, type crontab -l and press Enter to view the current crontab file. Notice that there is no crontab file for root. 2. Use create a crontab file for the root user. a. Type crontab -e and press Enter to create a new crontab file. b. Press 1 to select the nano editor and then press Enter. c. Move the cursor to the bottom of the file. d. On the blank line, type 30 2 * * 2,6 /bin/updatedb as your new task. e. Press Ctrl + x. f. Type y and press Enter to save your changes and exit the editor. 3. Verify the change to the crontab file. a.Type crontab -l and press Enter to view the current crontab file.

You have been doing some testing on your Linux system and now need to know how long the system has been running. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable command to determine: The date on which the server was last started. The time the server was last started. Answer the questions.

1. Determine when the server was last started. a. From the Favorites bar, select Terminal. b. From the prompt, type uptime -s or uptime --since and press Enter. c. From the top right, select Answer Questions. d. Answer all questions. e. From the Lab Questions dialog, select Score Lab.

The IT manager in your organization has asked you to install the fontconfig-3.10.87-5.fc24.rpm package. Complete this lab from the terminal. In this lab, your task is to: Switch to the root user using a password of 1worm4b8. Install the fontconfig-3.10.87-5.fc24.rpm package.The package is located in the /home/wadams/Downloads directory. Verify that the fontconfig package has been installed.

1. Switch to the root user. a. From the Favorites bar, select Terminal. b. At the prompt, type su - and press Enter. c. Type 1worm4b8 as the password and press Enter. 2. Install an rpm package. a. Type rpm -ivh /home/wadams/Downloads/fontconfig-3.10.87-5.fc24.rpm and press Enter. b. Type rpm -q fontconfig and press Enter to verify that the package is installed.

There is a C debugger package installed on the server that your organization is no longer using. The IT manager in your organization has asked you to uninstall the ddd-C-Debug-2.8.15-3.cd15 package. Complete this lab from the Terminal. In this lab, your task is to: Uninstall the ddd-C-Debug-2.8.15-3.cd15 package. Verify that the ddd-C-Debug-2.8.15-3.cd15 package is uninstalled.

1. Uninstall an rpm package. a. From the Favorites bar, select Terminal. b. At the prompt, type rpm -e ddd-C-Debug and press Enter to uninstall the package. c. Type rpm -q ddd-C-Debug and press Enter to verify that the package is not installed.

There is a kernel tools package installed on the server. The IT manager in your organization has asked you to upgrade the package using the new package version, kernel-tools-10.21.2015-54.fc21.rpm, located in the /root directory. Complete this lab from the Terminal. In this lab, your task is to upgrade the kernel tools package using the new package version, kernel-tools-10.21.2015-54.fc21.rpm.

1. Upgrade the kernel tools package. a. From the Favorites bar, select Terminal. b. At the prompt, type rpm -Uv kernel-tools-10.21.2015-54.fc21.rpm and then press Enter to update the kernel-tools-10.21.2015-54.fc21.rpm package.

As a systems administrator, you will frequently need to identify the process ID (PID) of a running process. The pidof tool is specifically designed for this task. You are currently logged in as the root user. Complete this lab from the Terminal. In this lab, your task is to complete the following: Method 1: Find the PID for the rpc.mountd process as follows:Use the ps aux command and redirect its output to the processes.txt file.Use the grep command to search the processes.txt file to find the process ID of rpc.mountd. Method 2: Use the pidof command to find the process ID of rpc.mountd.

1. Use ps and grep to find the process ID (PID) of the rpc.mountd process. a. From the Favorites bar, select Terminal. b. From the prompt, type ps aux > processes.txt and press Enter. The results of the ps aux command are saved in the processes.txt file. c. Type grep rpc.mountd processes.txt and press Enter. The process ID is the number in the second column. 2. Use pidof to find the process ID of rpc.mountd. a. In the terminal, type pidof rpc.mountd and press Enter.

Vera Edwards (vedwards) was recently hired as a new salesperson for your company. She cannot access the files in the sales folder and has asked for your help. Although you thought you had added her to the group, you want to verify this on her system. When you arrive to help her, she tells you that she cannot find a proposal file she has written, and she would like you to help her find it. Complete this lab from the Terminal. In this lab, your task is to use grep to: Find the current members of the /etc/group named sales. Answer Question 1. Find which proposal file contains the phrase The Fluid Data. The file is either in her home directory or in one of her sub-directories. Answer Question 2.

1. Use the grep command to find the current members of the group named sales. a. From the Favorites bar, select Terminal. b. At the prompt, type grep sales /etc/group and press Enter to find lines in the /etc/group file that contain the word sales. c. From the top right, select Answer Questions. d. Answer Question 1. 2. Find which proposal file contains the phrase, The Fluid Data. a. At the prompt, type grep -r "The Fluid Data" * and then press Enter to find all files in vedwards' home directory that contain this phrase. b. Answer Question 2. c. Select Score Lab.

You have been tasked with checking the status of a recently repaired system that had chronic high utilization. You must determine whether the machine is under a heavy load. Complete this lab from the Terminal.In this lab, your task is to: Run the applicable command to view which processes are consuming the most CPU time. Answer the questions.

1. Use top to see running processes. a. From the Favorites bar, select Terminal. b. From the prompt, type top and press Enter. Answer the questions. a. From the top right, select Answer Questions. b. Answer all of the questions. c. Select Score Lab.

You just got a new PowerMate input device that you want to use on your computer. You do not think that the PowerMate driver was compiled into the kernel of your Linux distribution. Complete this lab from the Terminal. In this lab, your task is to: Verify that the device driver was not inserted into the kernel. Insert the powermate module into the kernel. Confirm that you have loaded the module into the kernel.

1. Verify that the device driver for the PowerMate input device was not compiled into the kernel. a. From the Favorites bar, select Terminal. b. At the prompt, type lsmod and press Enter to verify that the device driver was not compiled into the kernel. 2. Insert the powermate module into the kernel. a. Type modprobe powermate and press Enter to insert the module into the kernel. b. Type lsmod and press Enter to confirm that the module was loaded into the kernel.

You are a student learning how to use Linux. Your teacher has given you the assignment to learn how to use a few basic commands. Complete this lab from the Terminal. In this lab, your task is to: Learn the options available for the killall command. Answer Question 1. Learn the options available for the useradd command. Answer Question 2. Learn the options available for the usermod command. Answer Question 3.

COMMAND --help

The IT manager in your organization has asked you to install an open-source volume control and audio effects tool named PulseAudio-Equalizer. In this lab, your task is to: Install the pulseaudio-equalizer.noarch package.

Install a DNF package. a. From the Favorites bar, select Terminal. b. At the prompt, type dnf install pulseaudio-equalizer.noarch and press Enter. c. Press Y and then press Enter to install the package.

You are an IT administrator for a Linux system. Your supervisor has asked you to collect some information about the system. Complete this lab from the Terminal. In this lab, use the files in the /proc directory to: Determine how many CPUs are installed. Find the system's CPU speed. Answer Questions 1 and 2. Find the total physical memory. Answer Question 3. Find the Linux kernel version. Answer Question 4.

cat /proc/cpuinfo cat /proc/meminfo cat/proc/version

You are experiencing a few issues on your Linux system that you think are related to either your terminal's environment settings or the shell being used. You need to view the files that will tell you information about your terminal. Complete this lab from the Terminal. In this lab, your task is to: View the contents of the file /root/.bash_profile. Answer Question 1. View the contents of the file /etc/shells. Answer Question 2.

cat FILEPATH cat /etc/shells

RunSnakeRun is a Python GUI package installed on the server. Since this utility is no longer being used, the IT manager has asked you to uninstall the package. Complete this lab from the Terminal. In this lab, your task is to: Use the dnf command to uninstall the RunSnakeRun.noarch package.

dnf remove PACKAGE

Your manager has asked you to remove the gameport module from the Linux print server. Complete this lab from the Terminal. In this lab, your task is to: Verify that the gameport module has been inserted into the kernel. Remove the gameport driver module from the kernel.

lsmod rmmod gameport

In this lab, you will explore the nano editor by configuring DNS name resolution on the IT-Laptop computer. In this lab, your task is to: Use nano to open the /etc/resolv.conf file. Modify the file by replacing the existing nameserver information with the following information: nameserver 163.128.78.93 nameserver 163.128.80.93 Save the changes made to the file.

nano filepath ctrl+x y

As a part of your daily maintenance, you scan for and kill any zombie processes on the system. Complete this lab from the Terminal. In this lab, your task is to: Use the ps command to find zombie processes. Use the kill command to terminate all zombie processes.

ps aux kill -9 ####

You are troubleshooting your Linux system and need to know some information about some of the currently running processes. Complete this lab from the Terminal. In this lab, your task is to: Use the ps command, with the applicable options, to find information about the currently running processes. Answer the questions.

ps aux | less

You have informed your users that you need to bring the Linux server down at the end of the day to perform routine maintenance. However, prior to shutting the system down, you want to give users fifteen minutes to save data and exit the system. In this lab, your task is to: Shut down the system using a 15-minute delay before shutting down. Use The server is shutting down in 15 minutes as a message to all logged-in users.

shutdown -h +15 The server is shutting down in 15 minutes

The power has gone out in your facility. You have an Uninterruptible Power Supply (UPS) 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.

shutdown -h now

You have encountered system problems that require you to reboot the Linux server. 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.

shutdown -r +5

While working on your Linux server, you want to enable anaconda.service and disable vmtoolsd.service using the systemctl command. In this lab, your task is to complete the following: Use the systemctl command to enable anaconda.service. Use the systemctl command to disable vmtoolsd.service. After each command, verify that the service has been enabled or disabled appropriately with the systemctl command. Launch Lab

systemctl enable anaconda.service systemctl is-enabled anaconda.service systemctl disable vmtoolsd.service systemctl is-enabled vmtoolsd.service

You're working on your Linux server and need to change to single user mode. You can change to single user mode with the systemctl command and rescue.target, which is a special target unit that runs a base system in single user mode and a rescue shell. In this lab, your task is to: Use the systemctl command to make rescue.target the current target. After changing to rescue.target, log back in as root using 1worm4b8 as the password.

systemctl isolate rescue.target 1worm4b8 enter


Related study sets

PEDS CHAPTER 28 (PREP U LEVEL 8)

View Set

ECON MID TERM HW QUESTIONS 4(part 2)

View Set

Word Choice and Author's Purpose in Warriors Don't Cry

View Set

Acct 201: Chapter 12. The statement of cash flows

View Set