Linux Labs Help
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.
Required Actions Insert the powermate driver into the kernel Complete this lab as follows: 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.
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.
Required Actions Install a DNF package Complete this lab as follows: 1. 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.
In this lab, you will discover important facts about network communications by using the ping and traceroute commands. IT-Laptop has a configured IP address, but no default gateway address. Use the Exhibits link at the top right to view the location and IP information of the routers in your network. The following local network IP addresses are used in this lab: Location Name IP Address Office 1 Office1 192.168.0.30 Office 2 Office2 192.168.0.31 Support Office Support 199.92.0.32 IT Administration IT-Laptop 192.168.0.33 Router Bldg A Router 192.168.0.5 Router Bldg B CorpNet Router 198.28.56.1 ISP External DNS Server 163.128.78.93 163.128.80.93 Complete this lab as follows: From the IT-Laptop system, explore using the ping command. Under IT Administration, select IT-Laptop. From the Favorites bar, select Terminal. At the prompt, type ping -c4 192.168.0.30 and press Enter to ping Office1. You can successfully ping the IP address of Office1 from IT-Laptop. (Note that the -c4 tells the ping command to only send a count of four pings.) Type ping -c4 199.92.0.32 and press Enter to ping Support. You cannot ping Support from IT-Laptop because the IP address for Support is on a different network (Network 199.92.0.0 instead of Network 192.168.0.0). Devices on the same local network must have IP addresses in the same network range. If you want to communicate with Support, you need to change the IP address assigned to Support. Type ping -c4 192.168.0.5 and press Enter to ping the internal interface of Building A's router. The ping is successful because IT-Laptop and the router's address (192.168.0.5) are on the same network. Type ping -c4 163.128.78.93 and press Enter to ping the external DNS server. This ping test fails. Although IT-Laptop and the ISP are on different networks (Networks 192.168.0.0 and 163.128.78.0, respectively), they should be able to communicate if IT-Laptop has a properly configured default gateway that will eventually lead to the correct destination. From the IT-Laptop system, view its IP configuration settings. At the prompt, type cd /etc/sysconfig/network-scripts and press Enter. Type ls and press Enter. Notice that there's a configuration file named ifcfg-enp2s0. This file contains the IP information on this system. Type cat ifcfg-enp2s0 and press Enter to view the contents of this IP configuration file. Notice that there is no GATEWAY address (192.168.0.5) set, explaining why the ping to the ISP in the previous step failed. There was no other computer to route the ping request to the correct destination. From Office2, trace the path between Office2 and the internet router's interface. From the top left, select Floor 1 Overview. Under Office 2, select Office2. From the Favorites bar, select Terminal. At the prompt, type traceroute 198.28.56.1 and press Enter. Which addresses appear in the path between Office2 and the CorpNet router? When you communicate with devices on other networks, the packets go to the default gateway first (the router between the two networks). In this example, that's the router for Building A, which has an IP address of 192.168.0.5. The packets are sent to the router interface on the same network as the sending host and then to the next hop in the path as necessary. In this case, there are two IP addresses listed in the traceroute output, but only one router (hop) between Office2 and the internet router. The last address in the traceroute output is the IP address for the internal NIC on the CorpNet router located in Building B. Type traceroute 163.128.78.93 and press Enter to trace the path to one of the ISP's DNS servers. How does this path differ from the path you discovered in the previous step? When you trace the path between Office2 and the ISP's DNS server, the path has additional hops. The first lines in the traceroute output are the routers (hops) between Office2 and the DNS server. The last address in the traceroute output is the IP address of the DNS server.
While completing this lab, use the following information: Location Name IP Address Office 1 Office1 192.168.0.30 Office 2 Office2 192.168.0.31 Support Office Support 199.92.0.32 IT Administration IT-Laptop 192.168.0.33 Router Bldg A Router 192.168.0.5 Router Bldg B CorpNet Router 198.28.56.1 ISP External DNS Server 163.128.78.93 163.128.80.93 Complete this lab as follows: 1. From the IT-Laptop system, explore using the ping command. A. Under IT Administration, select IT-Laptop. B. From the Favorites bar, select Terminal. C. At the prompt, type ping -c4 192.168.0.30 and press Enter to ping Office1. D. Type ping -c4 199.92.0.32 and press Enter to ping Support. E. Type ping -c4 192.168.0.5 and press Enter to ping the internal interface of Building A's router. F. Type ping -c4 163.128.78.93 and press Enter to ping the external DNS server. 2. From the IT-Laptop system, view its IP configuration settings. A. At the prompt, type cd /etc/sysconfig/network-scripts and press Enter. B. Type ls and press Enter. C. Type cat ifcfg-enp2s0 and press Enter to view the contents of this IP configuration file. 3. From Office2, trace the path between Office2 and the internet router's interface. A. From the top left, select Floor 1 Overview. B. Under Office 2, select Office2. C. From the Favorites bar, select Terminal. D. At the prompt, type traceroute 198.28.56.1 and press Enter. E. Type traceroute 163.128.78.93 and press Enter to trace the path to one of the ISP's DNS servers.
Listen to simulation instructions The wadams user needs access to a file in the /sales folder on your system, but does not belong to the sales group. In this lab, your task is to use ACL utilities to: Check the permissions on the /sales/forecast.txt file. Grant full rights for the /sales/forecast.txt file to wadams
Required Actions Use getfacl to check permissions on /sales/forecast.txt Use setfacl to grant full rights to wadams for /sales/forecast.txt Complete this lab as follows: 1. Check permissions on the /sales/forecast.txt file. A. From the Favorites bar, select Terminal. B. At the prompt, type getfacl /sales/forecast.txt and then select Enter. 2. Grant full rights for the /sales/forecast.txt file to wadams. A. Type setfacl -m u:wadams:rwx /sales/forecast.txt and then select Enter. B. Type getfacl /sales/forecast.txt and then select Enter.
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.
1. Use the --help option to learn more about the switches that can be used for the killall command. A. From the Favorites bar, select Terminal. B. From the prompt, type killall --help and press Enter to view the help information for this command. Help for Linux commands can also be seen using the -h option. Example: killall -h C. From the top right, select Answer Questions. D. Answer Question 1. 2. Use the --help option to learn more about the switches for the useradd command. A. From the prompt, type useradd --help and press Enter to view the help information for this command. B. Answer Question 2. 3. Use the --help option to learn more about the switches for the usermod command. A. From the prompt, type usermod --help and press Enter to view the help information for this command. B. Answer Question 3. C. From the Lab Questions dialog, select Score Lab.
You use a special user account called Administrator to log on to your computer. However, you think that someone has learned your password. You are currently logged on as Administrator. In this lab, your task is to: Change your password. The current Administrator account uses 7hevn9jan as the password. New password: r8ting4str As you type in the password, the cursor will not move. Continue entering the password anyway.
Required Actions Change the administrator user password to r8ting4str Complete this lab as follows: 1. Change the password for the Administrator account. A. From the Favorites bar, select Terminal. B. At the prompt, type passwd and press Enter. C. When prompted, enter 7hevn9jan as the current password and press Enter. You will not see the password as it is being typed. D. At the New password prompt, enter r8ting4str and press Enter. E. Retype r8ting4str as the new password and press Enter.
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.
Required Actions Change the target Log in as root Complete this lab as follows: 1. Change the system to single user mode. A. At the prompt, type systemctl isolate rescue.target and press Enter to change the runlevel to rescue.target. B. Enter the password 1worm4b8 and press Enter to log in to the root account after changing the current target.
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. Typically, the output of the ps command is piped directly to the grep command using the pipe symbol (|) as follows: ps aux | grep rpc.mountd. In this lab, you will experience using an alternate method by redirecting to a file using the greater-than sign (>) and then using grep to search a file.
Required Actions Use ps aux and grep to find the process idShow Details Use pidof to find the process id of rpc.mountd Complete this lab as follows: 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.
You are an IT manager. One of your job duties is monitoring system logs for the Linux systems on your network. The Journald service is collecting and storing system log data. Complete this lab from the Terminal. In this lab, your task is to: Display the kernel message log from the current boot. Display the system log in reverse order with the newest entries first.
Required Actions View log files using journaldShow Details Complete this lab as follows: 1. Display the kernel message log from the current boot. A. From the Favorites bar, select Terminal. B. At the prompt, type journalctl -k and press Enter. C. Type q to quit. 2. Display the system log in reverse order with the newest entries first. A. Type journalctl -r and press Enter. B. Type q to quit.
Users have complained that the seven-day default grace period for soft limits is too short. Complete this lab from the Terminal. In this lab, your task is to: Increase the block and file (inode) grace period for users from 7 to 30 days. Generate a quota report to confirm the changes.
Required Actions Increase the block grace period to 30 days Increase the inode grace period to 30 days Complete this lab as follows: 1. Increase the block and file (inode) grace period for users. A. From the Favorites bar, select Terminal. B. At the prompt, type edquota -u -t and press Enter to open the user soft quota grace period file. C. Press 1 and press Enter to open the editor. D. Move the cursor under Block grace period and delete the 7. E. Type 30. F. Move the cursor under Inode grace period and delete the 7. G. Type 30. H. Press Ctrl + x to exit the editor. I. Press the y key to save your changes. J. Press Enter. 2. Generate a quota report to confirm the changes. A. Type repquota -a and press Enter to generate the report and confirm the changes.
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. You must have root user permissions to install packages. You will not see the password as it is being typed. 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.
Required Actions Install RPM Package Verify Package Installation Complete this lab as follows: 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.
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.
Required Actions Kill process 1301 (bin/kswapd) Kill process 1570 (sbin/dhclient) Kill process 1980 (bin/sendmail) Use the following commands to stop the processes: 1. Use the ps aux command to find zombie processes. A. From the Favorites bar, select Terminal. B. At the prompt, type ps aux | less to view the list of processes. C. Use the up/down arrows to find the processes with a status (STAT) of z. D. Type q to exit the process list and return to the command prompt. 2. Terminate the processes. A. Type kill -9 1301 and press Enter. B. Type kill -9 1570 and press Enter. C. Type kill -9 1980 and press Enter.
The /dev/sdb2 volume is mounted to an uncommon mount point directory, /root/newdrive. You need to remove the volume from the /root/newdrive mount point and remount it to the /mnt/drive2 directory. Complete this lab from the Terminal. In this lab, your task is to: Unmount /dev/sdb2 from /root/newdrive. Mount /dev/sdb2 to /mnt/drive2. Use the mount command to verify that the volume is mounted correctly.
Required Actions Unmount /dev/sdb2 from /root/newdrive Mount /dev/sdb2 to /mnt/drive2 Complete this lab as follows: 1. Unmount /dev/sdb2 from /root/newdrive. A. From the Favorites bar, select Terminal. B. At the prompt, type umount /root/newdrive and press Enter to unmount the volume from the mount point directory. 2. Mount /dev/sdb2 to /mnt/drive2. A. Type mount /dev/sdb2 /mnt/drive2 and press Enter to mount the volume. B. Type mount and press Enter to verify that the volume is mounted correctly.
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.
Required Actions Update the package Complete this lab as follows: 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.
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.
Lab Questions Q1. How many CPUs are installed in this system? Correct answer: 2 Q2. What is the CPU speed in MHz? Correct answer: 1993.392 Q3. How much physical memory does the system have in KB? Correct answer: 1010712 Q4. What is the Linux kernel version? Correct answer: 2.6.33.3-85 Complete this lab as follows: 1. Find the number of CPUs and the CPU speed. A. From the Favorites bar, select Terminal. B. At the prompt, type cd /proc and press Enter to move to this directory. C. Type ls and press Enter to view the current files. D. Type cat cpuinfo and press Enter. You may need to scroll up to view all the results. E. From the top right, select Answer Questions. F. Answer Questions 1 and 2. 2. Find the total physical memory. A. At the prompt, type cat meminfo and press Enter. B. Answer Question 3. 3. Find the Linux kernel version. A. At the prompt, type cat version and press Enter. B. Answer Question 4. C. From the Lab Questions dialog, select Score Lab.
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.
Lab Questions Q1. On which date was the Linux server started? Correct answer: 2022-09-21 Q2. What time did the CorpData server start on that date? Correct answer: 02:20:00 Complete this lab as follows: 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.
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.
Lab Questions Q1. What is the PID for the hald process? Correct answer: 1194 Q2. What is the state of the ps aux process? Correct answer: running Q3. What is the percentage of memory used by PID 2156? Correct answer: 2.3 Q4. Which command invoked PID 1857? Correct answer: python Complete this lab as follows: 1. Find information about the currently running processes. A. From the Favorites bar, select Terminal. B. From the prompt, type ps aux | less and press Enter. C. Use the up/down arrows to find the desired processes. D. From the top right, select Answer Questions. E. Answer all questions. F. From the Lab Questions dialog, select Score Lab.
Your manager wants to verify information regarding the users on this system. Complete this lab from the Terminal. In this lab, your task is to: View the contents of the file that contains the user information. Answer the questions.
Lab Questions Q1. What is the UID for the schawla user account? Correct answer: 509 Q2. What is the user's full name, as found in the GECOS field, for the rcronn user? Correct answer: Robert Cronn Q3. What is the primary group ID for the ftp user account? Correct answer: 50 Q4. What is the home directory path for the root user account? Correct answer: /root Complete this lab as follows: 1. View the contents of the /etc/passwd file. A. From the Favorites bar, select Terminal. B. From the prompt, type cat /etc/passwd and press Enter. C. From the top right, select Answer Questions. D. Answer the lab questions. E. From the Lab Questions dialog, select Score Lab.
You are thinking about adding another disk to your system. To help you make your decision, you want to view the current setup. Complete this lab from the Terminal. In this lab, your task is to: View the disk information for your system. Answer the questions.
Lab Questions Q1. Which physical disk is the boot disk on? Correct answer: 1st Q2. Which disk partition is the boot disk on? Correct answer: 1st Q3. Which physical disk is the swap area on? Correct answer: 1st Q4. Which disk partition is the swap area on? Correct answer: 5th Q5. What is the beginning cylinder for the swap area? Correct answer: 62191 Q6. What is the allocated size of the swap area (in blocks)? Correct answer: 473632 Complete this lab as follows: 1. View the disk information for your system. A. From the Favorites bar, select Terminal. B. From the prompt, type fdisk -l and press Enter to view the disk information. C. From the top right, select Answer Questions. D. Answer all questions. E. From the Lab Questions dialog, select Score Lab.
Your manager wants to verify information regarding the various groups on this system. Complete this lab from the Terminal. In this lab, your task is to: View the contents of the file that contains the group information. Answer the questions.
Lab Questions Q1. Which users are not members of the mgmt1 group? Correct answer: vedwards, bcassini, bkahn Q2. Which users belong to the devel group? Correct answer: mbrown Q3. What is the group ID (GID) for the sales group? Correct answer: 513 Q4. Which group does the group ID (GID) of 503 belong to? Correct answer: cflynn Complete this lab as follows: 1. View the contents of the /etc/group file. A. From the Favorites bar, select Terminal. B. From the prompt, type cat /etc/group and press Enter. C. From the top right, select Answer Questions. D. Answer the lab questions. E. From the Lab Questions dialog, select Score Lab.
You are the IT administrator for this Linux system. Your manager has asked you to verify the ownership of a few files and directories. Complete this lab from the Terminal. In this lab, your task is to: View the ownership for the /sales/orders file. Answer Question 1. View the ownership for the /projects/darkhorse file. Answer Question 2. View the ownership for the /projects directory. Answer Question 3. View the ownership for the /hr directory. Answer Question 4.
Lab Questions Q1. Who owns the /sales/orders file? Correct answer: bcassini Q2. Who is the group owner of the /projects/darkhorse file? Correct answer: proj Q3. Who owns /projects directory? Correct answer: bcassini Q4. Who is the group owner of the /hr directory? Correct answer: sales Complete this lab as follows: 1. View the /sales/orders file information. A. From the Favorites bar, select Terminal. B. From the prompt, type ls -l /sales/orders and press Enter. C. From the top right, select Answer Questions. D. Answer Question 1. 2. View the /projects/darkhorse file information. A. From the prompt, type ls -l /projects/darkhorse and press Enter. B. Answer Question 2. 3. View the directory information. A. From the prompt, type ls -l / and press Enter. B. Answer Questions 3-4.
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.
Lab Questions Q1.What is the value set for the HOME environment variable? Correct answer: /home/cflynn Q2. What is the value set for the LANG environment variable? Correct answer: en_US.UTF-8 Q3. What is the value set for the SHELL environment variable? Correct answer: /bin/bash Q4. What is the value set for the TERM environment variable? Correct answer: linux While completing this lab, use the following environment variables: HOME LANG SHELL TERM Complete this lab as follows: 1. Find the value of the desired environment variables. A. From the Favorites bar, select Terminal. B. From the prompt, type echo $variable and then press Enter to view what is stored in the variable. C. Repeat step 1b for each remaining variable. 2. Answer the questions. A. From the top right, select Answer Questions. B. Answer Questions 1-4. C. From the Lab Questions dialog, select Score Lab.
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.
Lab Questions Q1What is the last word in the .bash_profile file? Correct answer: PATH Q2Which shells are available on your system? Correct answer: /bin/sh, /bin/bash, /sbin/nologin Complete this lab as follows: 1. View the contents of the /root/.bash_profile file. A. From the Favorites bar, select Terminal. B. From the prompt, type cat /root/.bash_profile and then press Enter. C. From the top right, select Answer Questions. D. Answer Question 1. 2. View the contents of the /etc/shells file. A. From the prompt, type cat /etc/shells and then press Enter. B. Answer Question 2.
As the IT administrator for a small corporate network, you periodically check the firewall configuration on the Linux server to make sure everything is secure. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable command needed to list the rules in all chains for your firewall. Answer the question.
Lab Questions Q1Which two TCP services have been allowed through the firewall? Correct answer: SSH and HTTP Complete this lab as follows: 1. Find the services allowed through your firewall. A. From the Favorites bar, select Terminal. B. From the prompt, type iptables -L and press Enter. C. From the top right, select Answer Questions. D. Answer Question 1. E. From the Lab Questions dialog, select Score Lab.
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.
Lab Questions Use grep to search the /etc/group file for members of the sales group Q1. Select all that are members of the sales group Correct answer: bkahn, schawla Find the sales proposal containing the phrase "The Fluid Data" Q2. Which file contains the text "The Fluid Data"? Correct answer: temp/ACME_proposal Complete this lab as follows: 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.
Your organization has added three development servers that will not be part of the Domain Name Service (DNS). To be able to access these servers more easily, you want to add them to the /etc/hosts file. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable commands to edit the /etc/hosts file using either the nano or vim editors. Add the following hosts to the /etc/hosts file: Host IP Address Alias potato.corpnet.local 192.168.122.84 potato radish.corpnet.local 192.168.122.85 radish lettuce.corpnet.local 192.168.122.86 lettuce Use the cat command to verify the changes. The password for the wadams user is 6or7en
Required Actions Add hosts to /etc/hosts file using a text editorShow Details Use cat to view the changes to the /etc/hosts fileShow Details Complete this lab as follows: 1. Add the additional hosts to the /etc/hosts file. A. From the Favorites bar, select Terminal. B. From the prompt, type sudo nano /etc/hosts and then press Enter. C. Enter 6or7en as the password for wadams and then press Enter. D. Using your arrow keys and keyboard, add the following hosts to the end of the hosts file: 192.168.122.84 potato.corpnet.local potato 192.168.122.85 radish.corpnet.local radish 192.168.122.86 lettuce.corpnet.local lettuce 2. Save the changes to the file and exit. A. Press Ctrl + x to save the modified buffer. B. Press y to confirm your choice. C. Press Enter to save the name using the default file name. 3. Verify the changes. A. From the prompt, type cat /etc/hosts and then press Enter. B. Verify that the new hosts have been added.
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.
Required Actions Add the nameservers to the resolv.conf fileHide Details Nameserver: 163.128.78.93 Nameserver: 163.128.80.93 Complete this lab as follows: 1. Use nano to open the /etc/resolv.conf file. A. From the Favorites bar, select Terminal. B. From the Terminal prompt, type nano /etc/resolv.conf and press Enter. 2. Modify the /etc/resolv.conf file to use the new nameserver addressees. A. Use the arrow keys to move to the nameserver line you want to edit. B. Press End to move to the end of the line. C. Press Backspace to delete the existing IP address for the selected nameserver. D. Type 163.128.78.93. E. Repeat steps 2a-2d, but use 163.128.80.93 for the second nameserver IP address. 3. Save the changes made to the /etc/resolv.conf file. A. Type Ctrl + O. B. Press Enter to save the file. C. Type Ctrl + X to exit the editor.
A change in company policy requires users in the hr group to make changes to the files in the /hr directory. Complete this lab from the terminal. In this lab, your task is to: Give the Write group permission to the files in the /hr directory in addition to any existing permissions. Use the ls command to verify the changes.
Required Actions Add the write group permission to the contacts file Add the write group permission to the evaluations file Add the write group permission to the payroll file Add the write group permission to the personnel file Add the write group permission to the stats file Complete this lab as follows: 1. Give the Write group permission to the files in the /hr directory. A. From the Favorites bar, select Terminal. B. At the prompt, type chmod g+w /hr/* and press Enter to add the write group permission to all files in the /hr directory. C. Type ls -la /hr and press Enter to verify the changes.
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. The system will only boot to the Windows splash screen.
Required Actions Change GRUB Menu GRUB_DEFAULT to Windows 10Hide Details Use nano to edit the grub file Write the new GRUB settings to the grub.cfg file Reboot the operating system Complete this lab as follows: 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. 3. 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. The system will only boot to the Windows splash screen.
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.
Required Actions Change GRUB Menu timeout to 10 seconds Reboot the operating system Complete this lab as follows: 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.
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.
Required Actions Remove the gameport driver module from the kernel Complete this lab as follows: 1. Verify that the gameport module has been compiled into the kernel. A. From the Favorites bar, select Terminal. B. At the prompt, type lsmod and press Enter to view all installed modules. 2. Remove the gameport driver module from the kernel. A. Type rmmod gameport and press Enter to remove the module from the kernel. B. Type lsmod and press Enter to verify that the module was removed.
You are the IT administrator for a small corporate network. You need to configure the workstation in the Support Office so that the workstation can connect to the local network and the internet. Complete this lab from the Terminal. In this lab, your task is to: Configure the IP version 4 TCP/IP settings for the enp2s0 network connections as follows: IP address: 192.168.0.254 Subnet mask: 255.255.255.0 Broadcast: 192.168.0.255 Default gateway: 192.168.0.5 Configure DNS using the following addresses: 163.128.78.93 163.128.80.93 Use the following steps to test the corrections to the enp2s0 interface card: Ping the gateway to confirm that the workstation is properly connected to the small network. Ping the external DNS server to confirm that the workstation is properly connect to the internet. Ping an external web server (www.corpnet.xyz) to confirm that DNS is configured properly.
Required Actions Configure settings for enp2s0Show Details Configure DNS Test the connection with pingShow Details Complete this lab as follows: 1. View the current state of the network card in the Support computer. A. From the Favorites bar, select Terminal. B. At the prompt, type ip addr show and press Enter to view the current state of the network adapter. C. Type cd /etc/sysconfig/network-scripts and press Enter. D. Type ls and press Enter to view the files in this folder. (Take note of ifcfg-enp2s0, which is the configuration file for the network adapter.) 2. Configure the IP version 4 TCP/IP settings for the enp2s0 network connection. A. Type nano ifcfg-enp2s0 and press Enter to edit the first adapter. B. Using the keyboard and arrow keys, configure the IP settings as follows: IPADDR: 192.168.0.254 NETMASK: 255.255.255.0 BROADCAST: 192.168.0.255 GATEWAY: 192.168.0.5 C. Type Ctrl + x to exit the editor. D. Type y to save the modified buffer to the disk. E. Press Enter to save the file using the default name. 3. Configure DNS. A. At the prompt, type nano /etc/resolv.conf and press Enter to configure the DNS server addresses. B. Type nameserver 163.128.78.93 and press Enter to start a new line. C. Type nameserver 163.128.80.93 on the new line. D. Type Ctrl + x to exit the editor. E. Type y to save the modified buffer to the disk. F. Press Enter to save the file using the default name. G. Type ip link set enp2s0 down and press Enter to bring the interface down. H. Type ip link set enp2s0 up and press Enter to bring the interface back up with the new configuration. 4. Use ping to test the corrections to the enp2s0 interface card. A. At the prompt, type ping -c4 192.168.0.5 and press Enter to confirm the connection to the network and default gateway. B. Type ping -c4 163.128.80.93 and press Enter to confirm the connection to the DNS server and the outside network. C. Type ping -c4 www.corpnet.xyz and press Enter to confirm DNS resolution.
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.
Required Actions Configure the system to shut downHide Details Use a 15-minute delay before shutting down Use "The server is shutting down in 15 minutes" as a message to all logged-in users Complete this lab as follows: 1. Shut down the server in 15 minutes and display a warning message. A. From the Favorites bar, select Terminal. B. At the prompt, type shutdown -h +15 The server is shutting down in 15 minutes to send a message to logged-in users, wait 15 minutes, and shut down the system. C. Press Enter.
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.
Required Actions Create a crontab file Complete this lab as follows: 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.
On your Linux system, you have installed a second hard drive and created one partition on the drive. You have also installed a third hard drive and created two partitions on that drive. You now want to create a logical volume using the first partition on each new drive. Complete this lab from the Terminal. In this lab, your task is to: Use pvcreate to initialize the partitions for use with LVM. Use vgcreate to create a volume group named data using these two partitions. Use lvcreate to create a 1-terabyte logical volume named art from the data volume group. Create a directory named product where you can mount the new logical volume. Format the new logical volume with ext4. Mount the logical volume to the product directory. Change to the product directory and create a file named newproduct. Verify the creation of the file and amount of disk space available on this new volume.
Required Actions Create a volume group called data Create a logical volume called artShow Details Mount the new volume to the products folder Create a file called newproduct Complete this lab as follows: 1. Initialize the partitions. A. From the Favorites bar, select Terminal. B. At the prompt, type ls /dev/sd* and press Enter to view the partition information. Note that partitions sdb1, sdc1, and sdc2 are available on the new hard drives. C. Type pvcreate /dev/sdb1 /dev/sdc1 and press Enter to initialize the first two partitions on each drive for use with LVM. 2. Create a volume group named data using the two partitions. A. Type vgcreate data /dev/sdb1 /dev/sdc1 and press Enter to create the volume group. B. Type vgs and press Enter to verify the creation of the new volume group. 3. Create a 1-terabyte logical volume named art from the data volume group. A. Type lvcreate --size 1t -n art data and press Enter to create the new volume. 4. Create a directory named product and format it with ext4. A. Type mkdir product and press Enter to create a new folder to mount the logical volume in. B. Type mkfs.ext4 /dev/data/art and press Enter to create the file system. 5. Mount the logical volume to the product directory. A. Type mount -t ext4 /dev/data/art product and press Enter to mount the volume in the product folder. 6. Change to the product directory and create a file named newproduct. A. Type cd product and press Enter to change into the product folder. B. Type touch newproduct and press Enter to create a file. 7. Verify the creation of the file and amount of disk space available on this new volume. A. Type ls and press Enter to view the new file. B. Type df -h and press Enter to view the logical volume.
You need to create a script file to change and export the SHELL environmental variable as the C shell. You have decided to use the vim editor to do this. In this lab, your task is to: Use vim to open a new file named /etc/pref_shell. Add the following lines to the new file:SHELL=/bin/cshexport SHELL Save and close the file.
Required Actions Create the /etc/pref_shell file Add the lines to the file Complete this lab as follows: 1. Use the vim text editor to open a new file. A. From the Favorites bar, select Terminal. B. From the Terminal prompt, type vim /etc/pref_shell and press Enter to open vim and create the file. 2. Add the required text to the file. A. Press the i key to enter insert mode. B. Type the following text: SHELL=/bin/csh export SHELL 3. Save and close the file. A. Press the Esc key to exit the insert mode. B. Type : to enter the command line mode. C. Type wq and press Enter to save (write) the file and exit (quit).
Salman Chawla (schawla) is no longer part of the sales team and is waiting to be assigned a new position. In the meantime, you do not want him to have access to sales resources. Complete this lab from the Terminal. In this lab, your task is to: Remove the schawla user from all secondary group memberships. View the /etc/group file to verify the changes.
Required Actions Remove the schawla user from all secondary group memberships Complete this lab as follows: 1. Remove the schawla user from all secondary group memberships. A. From the Favorites bar, select Terminal. B. At the prompt, type usermod -G "" schawla and press Enter to remove the user from all groups. Do not include a space between the quotes. C. Type groups schawla or cat /etc/group to verify the changes.
You are preparing to manage a new project, which is code named White Horse. You need to prepare directories for White Horse documents. You are logged in as the wadams user. In this lab, your task is to complete the following: From the command line, create a directory called wh in /home/wadams. Also from the command line, create the following directories in /home/wadams/wh: implement plan research Use the ls command to verify creation of the directories.
Required Actions Create the /home/wadams/wh directory Create the /home/wadams/wh/plan directory Create the /home/wadmams/wh/research directory Create the /home/wadams/wh/implement directory Complete this lab as follows: 1. Create the wh directory. A. From the Favorites bar, select Terminal. B. From the Terminal prompt, type mkdir wh and press Enter. 2. Create the required subdirectories in the wh directory. A. From the Terminal prompt, type cd wh and press Enter to move to the new directory. B. Type mkdir implement and press Enter. C. Type mkdir plan and press Enter. D. Type mkdir research and press Enter. 3. Verify the creation of the directories. A. From the Terminal prompt, type ls -l /home/wadams/wh and press Enter.
You recently installed and formatted a new hard drive in your system. Its device file name is /dev/sdb1. Now you want to mount the volume. Complete this lab from the Terminal. In this lab, your task is to: Create the /mnt/disk directory. Mount /dev/sdb1 to the /mnt/disk directory with the ext3 file system. Use the mount command to verify that the volume is mounted correctly.
Required Actions Create the /mnt/disk directory Mount the /dev/sdb1 volume to /mnt/disk Mount the /dev/sdb1 volume with the ext3 filesystem Complete this lab as follows: 1. Create the directory. A. From the Favorites bar, select Terminal. B. At the prompt, type mkdir /mnt/disk and press Enter. 2. Mount the volume and verify that the volume is mounted correctly. A. Type mount -t ext3 /dev/sdb1 /mnt/disk and press Enter. B. Type mount and press Enter to verify that the volume is mounted correctly.
Will Adams (wadams) owns and maintains a database file in the /home/wadams directory called contacts.db. The file holds contact information for perspective clients. Brenda Cassini (bcassini) and Vera Edwards (vedwards) want to access and add contact information to the file to share the data among the three users. You have decided to meet their request using a hard link. In this lab, your task is to create hard link files to /home/wadams/contacts.db as follows: Create the file in the following directories: /home/bcassini /home/vedwards Use contacts_link as the name for the new hard links.
Required Actions Create the contacts_link hard link in /home/bcassini to /home/wadams/contacts.db Create the contacts_link hard link in /home/vedwards to /home/wadams/contacts.db Complete this lab as follows: 1. Create hard link files to /home/wadams/contacts.db. A. From the Favorites bar, select Terminal. B. At the prompt, type ln /home/wadams/contacts.db /home/bcassini/contacts_link and press Enter. C. Type ln /home/wadams/contacts.db /home/vedwards/contacts_link and press Enter.
Your company uses a proprietary graphics program called Imitator. This program is stored in the /root directory. Maggie Brown (mbrown) needs to create and modify images using the Imitator program. In this lab, your task is to create a symbolic link file to /root/imitator as follows: Use imitator_link as the symbolic link name. Create the link file in /home/mbrown.
Required Actions Create the imitator_link symbolic link to /root/imitator in /home/mbrown Complete this lab as follows: 1. Create a symbolic link file to /root/imitator. A. From the Favorites bar, select Terminal. B. At the prompt, type ln -s /root/imitator /home/mbrown/imitator_link. C. Press Enter to create the symbolic link. Without the -s option, the ln command creates a hard link.
You need to create a backup copy of the /sales directory. You have decided to use tar to create the backup. Complete this lab from the Terminal. In this lab, your task is to: Create a compressed archive of the /sales directory and all of its contents. Name the file /salesbkp.tar.gz and save it in the root directory (/).
Required Actions Create the salesbkp.tar.gz tar file in the root directory Archive the /sales directory in the salesbkp.tar.gz tar file Complete this lab as follows: 1. Create a compressed archive of the /sales directory and all of its contents. A. From the Favorites bar, select Terminal. B. At the prompt, type tar -zcf /salesbkp.tar.gz /sales and press Enter to create the compressed tar file.
You recently upgraded your computer and added an extra 512 MB of RAM. Consequently, you want to increase your swap space by adding a new swap area. The second hard disk has an unused partition (/dev/sdb2) that you want to format for the swap area. Complete this lab from the Terminal. In this lab, your task is to: Create a swap partition on /dev/sdb2. Activate the swap partition.
Required Actions Create the swap partition on /dev/sdb2 Activate the swap partition on /dev/sdb2 Complete this lab as follows: 1. Create a swap partition on /dev/sdb2. A. From the Favorites bar, select Terminal. B. At the prompt, type mkswap /dev/sdb2 and press Enter. 2. Activate the swap partition. A. At the prompt, type swapon /dev/sdb2 and press Enter.
Someone created duplicate versions of three project documents. To avoid version control problems, you need to delete the duplicate files. When deleting the files, use the switch that will allow you to delete a file without any promptings. Complete this lab from the Terminal. In this lab, your task is to: Delete the following files from the /projects directory: darkhorse1 camouflage1 endgame1 When you are finished, use the ls command to verify the deletion.
Required Actions Delete the /projects/darkhorse1 file Delete the /projects/camouflage1 file Delete the /projects/endgame1 file Complete this lab as follows: 1. Remove the duplicate files. A. From the Favorites bar, select Terminal. B. From the Terminal prompt, type cd /projects and press Enter. C. From the Terminal prompt, type rm -f darkhorse1 and press Enter. C. Type rm -f camouflage1 and press Enter. D. Type rm -f endgame1 and press Enter. E. Type ls -l to verify the deletion of the files.
Your company recently changed directions and decided to terminate three products. All the necessary files have been backed up, archived, and deleted. Now you need to clean up your system by removing the directories that were used to hold the product files. In this lab, your task is to complete the following: From the command line, delete the following directories from the /projects directory: heartbt heartmon heartstrng Use the ls command to verify the deletion of the directories.
Required Actions Delete the /projects/heartbt directory Delete the /projects/heartmon directory Delete the /projects/heartstrng directory Complete this lab as follows: 1. Access the subdirectories found in the /projects directory. A. From the Favorites bar, select Terminal. B. From the Terminal prompt, type cd /projects and press Enter. 2. Remove the empty project directories. A. Type rmdir heartbt heartmon heartstrng and then press Enter. B. Type ls -l /projects and press Enter to verify the deletion of the files.
Listen to simulation instructions Linda Blaine (lblaine) and Rhonda Conger (rconger) are temporary employees who were auditing your organization's financial documents. Their user accounts are members of the auditors group. They have completed their work and have moved on to new assignments. You need to remove their user accounts, home directories, and the auditors group from the system. Complete this lab from the terminal. In this lab, your task is to: Delete the following user accounts and their corresponding home directories: lblaine rconger Delete the auditors group. View the /etc/group file to verify the changes.
Required Actions Delete the lblaine account and home directoryShow Details Delete the rconger account and home directoryShow Details Delete the auditors group Complete this lab as follows: 1. Delete the user accounts and their corresponding home directories. A. From the Favorites bar, select Terminal. B. At the prompt, type userdel -r lblaine and press Enter to delete the lblaine user account and home directory. The inclusion of the -r switch removes the home directory. C. Type userdel -r rconger and press Enter to delete the rconger user account and home directory. 2. Delete the auditors group. A. Type groupdel auditors and press Enter to delete the auditors group. B. Type cat /etc/group and press Enter to verify that the users were deleted. C. Type ls /home and press Enter to verify that the home directories were deleted.
Terry Haslam (thaslam) was dismissed from the organization. His colleagues have harvested the files they need from his home directory and other directories. Your company's Security Policy states that upon dismissal, users accounts should be removed in their entirety. In this lab, your task is to: Remove the thaslam user account and home directory from the system. View the /etc/passwd file and /home directory to verify the account's removal.
Required Actions Delete the thaslam user Delete the thaslam home directory Complete this lab as follows: 1. Remove the thaslam user account and home directory. A. From the Favorites bar, select Terminal. B. At the prompt, type userdel -r thaslam and press Enter to remove the user account and home directory. 2. Verify the changes. Type cat /etc/passwd and press Enter. Type ls /home and press Enter to verify that the account was removed.
The system is running hard disk quotas for users and groups. Complete this lab from the Terminal. In this lab, your task is to: Disable the quotas on the root directory (/).
Required Actions Disable user quotas for the root directory Disable group quotas for the root directory In this lab, your task is to disable the quotas on the root directory (/). Complete this lab as follows: 1. Disable the quotas on the root directory (/). A. From the Favorites bar, select Terminal. B. At the prompt, type quotaoff / and then press Enter to disable quotas for the root directory.
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.
Required Actions Enable and verify anaconda.serviceHide Details Service enabled Verify that the service is enabled Disable and verify vmtoolsd.serviceHide Details Disable vmtoolsd.service Verify that the service is disabled Complete this lab as follows: 1. Enable anaconda.service. A. From the Favorites bar, select Terminal. B. At the prompt, type systemctl enable anaconda.service and press Enter. C. Type systemctl is-enabled anaconda.service and press Enter to verify that the service is enabled. 2. Disable vmtoolsd.service. A. Type systemctl disable vmtoolsd.service and press Enter. B. Type systemctl is-enabled vmtoolsd.service and press Enter to verify that the service is disabled.
You've installed a new hard drive and created a partition on the drive. You now need to format the partition before you can save data on the new hard drive. Complete this lab from the Terminal. In this lab, your task is to: Format the /dev/sdb1 partition with the ext3 file system
Required Actions Format the /dev/sdb1 partition with the ext3 file system Complete this lab as follows: 1. Format the /dev/sdb1 partition with the ext3 file system. A. From the Favorites bar, select Terminal. B. At the prompt, type one of the following commands: * mke2fs -j /dev/sdb1 and press Enter (the -j switch enables journaling). * mkfs -t ext3 /dev/sdb1 and press Enter. * mkfs.ext3 /dev/sdb1 and press Enter.
You've installed a third hard drive (sdc) and created two partitions on the drive. Now you need to format both partitions. Complete this lab from the Terminal. In this lab, your task is to: Format the two partitions with the ext4 file system.
Required Actions Format the /dev/sdc1 partition with the ext4 file system Format the /dev/sdc2 partition with the ext4 file system Complete this lab as follows: 1. Format the partitions with the ext4 file system. A. From the Favorites bar, select Terminal. B. At the prompt, type ls /dev/sd* and press Enter to view the available partitions. sdc1 and sdc2 are the partitions on the third hard drive. C. Type one of the following commands and press Enter to format the first partition on the third drive: * mke2fs -t ext4 /dev/sdc1 * mkfs -t ext4 /dev/sdc1 * mkfs.ext4 /dev/sdc1 D. Type one of the following commands and press Enter to format the other partition: * mke2fs -t ext4 /dev/sdc2 * mkfs -t ext4 /dev/sdc2 * mkfs.ext4 /dev/sdc2
During a random security audit, you found that the user and group ownership for the /hr directory is set to Will Adams (wadams). For security reasons, you need to change the ownership. You want to give ownership to Brenda Cassini (bcassini), the office manager, and you want to give group ownership to the hr group for all the files in the directory. After you do this, you need to reset group ownership on the /hr/personnel file to mgmt1. Complete this lab from the Terminal. In this lab, your task is to: Give bcassini ownership of the /hr directory and all of its contents. Give the hr group ownership of the /hr directory and all of its contents. Return group ownership of the /hr/personnel file to mgmt1.
Required Actions Give bcassini ownership of the /hr directory and subdirectoriesShow Details Give group ownership to the hr group of the /hr directory and subdirectoriesShow Details Return group ownership of the /hr/personnel file to the mgmt1 group Complete this lab as follows: 1. Give the bcassini user and the hr group ownership of the /hr directory and all of its contents. A. From the Favorites bar, select Terminal. B. At the prompt, type chown -R bcassini:hr /hr and press Enter to assign user ownership to bcassini and group ownership to hr for the /hr directory and all of its contents. The -R switch changes the ownership recursively throughout the /hr directory tree. 2. Return group ownership of the /hr/personnel file to mgmt1. A. Use chgrp mgmt1 /hr/personnel and press Enter to return group ownership of the /hr/personnel file to mgmt1.
Every seven years, your company provides a six-week sabbatical for each employee. Vera Edwards (vedwards), Corey Flynn (cflynn), and Bhumika Kahn (bkahn) are leaving today, while Maggie Brown (mbrown), Brenda Cassini (bcassini), and Arturo Espinoza (aespinoza) are just returning. Complete this lab from the Terminal. The company Security Policy mandates that user accounts for employees gone for longer than two weeks be disabled. In this lab, your task is to: Lock the following user accounts: vedwards cflynn bkahn Unlock the following user accounts: mbrown bcassini aespinoza View the /etc/shadow file to verify the changes.
Required Actions Lock the user accountsHide Details Lock the vedwards user account Lock the cflynn user account Lock the bkahn user account Unlock the user accountsHide Details Unlock the mbrown user account Unlock the bcassini user account Unlock the aespinoza user account Complete this lab as follows: 1. Lock the required accounts. A. From the Favorites bar, select Terminal. B. At the prompt, type usermod -L vedwards or passwd -l vedwards and press Enter to lock the user account. C. Type usermod -L cflynn or passwd -l cflynn and press Enter to lock the user account. D. Type usermod -L bkahn or passwd -l bkahn and press Enter to lock the user account. 2. Unlock the required accounts. A. Type usermod -U mbrown or passwd -u mbrown and press Enter to unlock the user account. B. Type usermod -U bcassini or passwd -u bcassini and press Enter to unlock the user account. C. Type usermod -U aespinoza or passwd -u aespinoza and press Enter to unlock the user account. 3. Verify the changes. A. Type cat /etc/shadow to verify the changes. The inclusion of the exclamation point (!) in the password field indicates that the account is disabled.
Your system administrator has scheduled a system update. The administrator has asked that everyone log out of their systems and leave them running. In this lab, your task is to: Log out of the system while leaving the system powered on.
Required Actions Log out of the system Complete this lab as follows: 1. Log out of the system while leaving the system powered on. A. From the terminal prompt, type logout. B. Press Enter to log off of the system. You are logged off, but the system is left running.
Brenda Cassini (bcassini) is taking over payroll documentation for Will Adams (wadams). In this lab, your task is to give the bcassini user ownership of the /hr/payroll file. Use the ls -l command to verify the ownership changes.
Required Actions Make bcassini the owner of the /hr/payroll file Complete this lab as follows: 1. Give bcassini ownership of the /hr/payroll file. A. From the Favorites bar, select Terminal. B. At the prompt, type ls -l /hr and press Enter to view the current ownership of the /hr/payroll file. C. At the prompt, type chown bcassini /hr/payroll and press Enter to give bcassini ownership of the /hr/payroll file. D. Type ls -l /hr and press Enter to verify the change in ownership.
Maggie Brown (mbrown) and Corey Flynn (cflynn) have recently been hired in the Human Resources department. You have already created their user accounts. In this lab, your task is to: Add the hr group as a secondary group for the mbrown and cflynn user accounts. View the /etc/group file or use the groups command to verify the changes.
Required Actions Make mbrown a secondary member of the hr group Make cflynn a secondary member of the hr group Complete this lab as follows: 1. Add the hr group as a secondary group for Maggie and Corey. A. From the Favorites bar, select Terminal. B. At the prompt, type usermod -G hr mbrown and press Enter to make mbrown a member of the hr group. C. Type usermod -G hr cflynn and press Enter to make cflynn a member of the hr group. 1. Verify the assignments. A. Type groups mbrown and press Enter to verify mbrown's group membership. B. Type groups cflynn and press Enter to verify cflynn's group membership.
You are the IT administrator for a small corporate network. You have set up an internal web server to do some testing. You would like to obscure the server some by changing the default ports. Complete this lab from the Terminal. In this lab, your task is to: Use ss -lt and netstat -a to determine which ports the web server is running on. Modify the ports.conf file to change port 80 to 81 and port 8080 to 8081. Restart the web server to implement the port change. Use netstat -a and ss -lt to verify that the server is listening on the new ports.
Required Actions Modify /etc/ports.conf to change the portsShow Details Restart the web server to activate the new ports Actions you should not have performed: The webserver should not be listening on ports 80 or 8080 Complete this lab as follows: 1. Determine which ports the web server is running on. A. From the Favorites bar, select Terminal. B. At the prompt, type ss -lt and press Enter to view which ports the server is listening on. C. Type netstat -a and press Enter to identify which ports the Apache web server is listening on. The web server is listening on 80, 443, and 8080. 2. Modify the ports.conf file to change port 80 to 81 and port 8080 to 8081. A. Type nano /etc/apache2/ports.conf and press Enter to open the port configuration file. B. Change 80 to 81. C. Change 8080 to 8081. D. Press Ctrl + x. E. Type y and then Enter to save your changes and to exit the editor. 3. Restart the web server to implement the port change. A. Type systemctl restart apache2 and press Enter to restart the web server. B. Verify that the server is listening on the new ports. C. Type ss -lt and press Enter. D. Type netstat -a and press Enter to verify that the server is listening on the new ports.
You have just added a custom script to change and export the SHELL environmental variable as the C shell. However, you decided to change from the C shell to tcsh. In this lab, your task is to: Use vim to open the /etc/pref_shell file. Modify the environmental variable line SHELL=/bin/csh to read SHELL=/bin/tcsh. Save your changes.
Required Actions Modify the environmental variable line to read SHELL=/bin/tcsh Complete this lab as follows: 1. Use the vim text editor to open the /etc/pref_shell file. A. From the Favorites bar, select Terminal. B. From the Terminal prompt, type vim /etc/pref_shell and press Enter to open the file. 2. Modify the contents of the file. A. Press i to enter edit mode. B. Move the cursor to the line SHELL=/bin/csh and insert the letter t to make the line read SHELL=/bin/tcsh. 3. Save the changes made to the file. A. Press the Esc key to exit the insert mode. B. Type : to enter the command line mode. C. Type wq and press Enter to save (write) the file and exit (quit).
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.
Required Actions Uninstall the package Verify that the package is not installed Complete this lab as follows: 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.
Peter Lacy (placy) has taken an extended leave from the company for personal reasons. However, he was working on a critical project code named White Horse with several other employees. The project leader requested that you move any White Horse documents in Peter Lacy's home directory to Brenda Cassini's (bcassini's) home directory. You're logged on as wadams. Complete this lab from the Terminal. In this lab, your task is to: Switch to the root user using 1worm4b8 for the root user password. You must have root user permissions to move other people's files. Move the following files from Peter's home directory (placy) to Brenda's home directory (bcassini). confid_wh projplan_wh Use the ls command to verify the files' new location.
Required Actions Move the /home/placy/confid_wh file to /home/bcassini Move the /home/placy/projplan_wh file to /home/bcassini Complete this lab as follows: 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. Note: You will not be able to view the password as it is being typed. 2. Move the White Horse files. A. Type cd /home/placy and then press Enter to change to Peter's home directory. B. Type mv confid_wh ../bcassini to move the file to Brenda's home directory. C. Type mv projplan_wh ../bcassini to move the file to Brenda's home directory. 3. Verify that files were moved. A. Type ls -l to verify that the files are no longer in Peter's home directory. B. Type ls -l /home/bcassini and press Enter to verify the files' new location.
You are a network technician for a small corporate network, which is connected to the internet. Several issues have recently come up. The employee in the Support Office reports that their workstation cannot communicate with any other computers on the network and cannot connect to the internet. The employee in Office 2 reports that their workstation can communicate with some computers on the network, but cannot access the internet. In addition to these two issues, you have just set up your workstation in the IT Administration office, and the workstation does not connect to any computers on the network. You need to diagnose and fix these problems. In this lab, your task is to: Use troubleshooting tools such as ping, ip addr show, and route to diagnose the problems in the network. Fix the problem at each workstation. Use the troubleshooting tools to confirm each problem's resolution. The following table lists what should be the correct IP address for each computer: Location Name IP Address Networking Closet CorpServer 192.168.0.10/24 Office 1 Office1 192.168.0.30/24 Office 2 Office2 192.168.0.31/24 Support Office Support 192.168.0.32/24 IT Administration ITAdmin 192.168.0.33/24 Default Gateway Bldg A Router 192.168.0.5 ISP External DNS Server 163.128.78.93 163.128.80.93 Use Exhibits to see the network diagram and wiring schematics for the network.
Required Actions On Support, configure an appropriate IP address and broadcast address for this networkShow Details On Office2, configure the appropriate gateway address for this networkShow Details On ITAdmin, configure an appropriate subnet mask for this networkShow Details While completing this lab, use the following information: Location Name IP Address Networking Closet CorpServer 192.168.0.10/24 Office 1 Office1 192.168.0.30/24 Office 2 Office2 192.168.0.31/24 Support Office Support 192.168.0.32/24 IT Administration ITAdmin 192.168.0.33/24 Default Gateway Bldg A Router 192.168.0.5 ISP External DNS Server 163.128.78.93 163.128.80.93 Complete this lab as follows: 1. From the Support Office, begin troubleshooting the problem. A. Under Support Office, select Support. B. From the Favorites bar, select Terminal. C. At the prompt, type ping -c4 192.168.0.5 and press Enter to ping the gateway. The ping fails after a count of four tries, with zero packets received. D. Type ping -c4 192.168.0.30 and press Enter to ping the computer in Office 1. The ping fails after a count of four tries, with zero packets received. E. Type ip addr and press Enter to view the network configuration. Notice that the IP configuration for the enp2s0 network interface is on a different network than the other computers in this building (172.62.0.0 instead of 192.168.0.0). 2. Correct the problem on Support by configuring the network properties for the interface. A. At the prompt, type nano /etc/sysconfig/network-scripts/ifcfg-enp2s0 and press Enter to edit the file and configure the interface. B. Using the arrow keys and keyboard, change the following values: IPADDR: 192.168.0.32 BROADCAST: 192.168.0.255 GATEWAY: 192.168.0.5 C. Press Ctrl + x to exit the editor. D. Type y to save the file; then press Enter. E. Reset the interface card: * Type ip link set enp2s0 down and press Enter to bring the interface down. * Type ip link set enp2s0 up and press Enter to bring the interface back up with the new configuration. F. Type ip addr and press Enter to verify the correct IP address on the interface. G. Type ping -c4 192.168.0.5 and press Enter to verify connectivity to the gateway. The ping now succeeds, with four packets received. H. Type ping -c4 163.128.80.93 and press Enter to verify connectivity to the DNS server. The ping succeeds, with four packets received. 3. On Office2, begin troubleshooting by verifying the scope of the connectivity problem. A. From the top left, select Floor 1 Overview. B. Under Office 2, select Office2. C. From the Favorites bar, select Terminal. D. At the prompt, type ping -c4 192.168.0.5 and press Enter to ping the gateway. The ping succeeds. E. Type ping -c4 192.168.0.30 and press Enter to ping the computer in Office 1. The ping succeeds. F. Type ping -c4 163.128.80.93 and press Enter to ping the DNS server. The ping command fails after a count of four tries, with zero packets received. Since you have connectivity to the computers on the local network, but cannot access the DNS server, this indicates a possible problem with the configured gateway address. G. Type route and press Enter to examine the configured gateway. Notice that the gateway is configured incorrectly for this network. It is using a gateway address of .1 instead of .5. 4. Correct the problem on Office2 by configuring the network properties for the interface. A. Type nano /etc/sysconfig/network-scripts/ifcfg-enp2s0 and press Enter to edit the file. B. Update the GATEWAY line: 192.168.0.5 C. Press Ctrl + x to exit the editor. D. Type y to save the file; then press Enter. E. Reset the interface card: Type ip link set enp2s0 down and press Enter to bring the interface down. Type ip link set enp2s0 up and press Enter to bring the interface back up with the new configuration. F. Type ping -c4 163.128.80.93 and press Enter to verify connectivity to the internal router interface. The ping now succeeds. 5. On ITAdmin, begin troubleshooting by verifying the scope of the connectivity problem. A. From the top left, select Floor 1 Overview. B. Under IT Administration, select ITAdmin. C. From the Favorites bar, select Terminal. D. At the prompt, type ping -c4 192.168.0.5 and press Enter to ping the gateway. The ping fails after a count of four tries, with zero packets received. E. Type ping -c4 192.168.0.30 and press Enter to ping the computer in Office 1. The ping fails after a count of four tries, with zero packets received. F. Type ip addr and press Enter to examine the configured subnet mask. The subnet mask is configured incorrectly. 6. Correct the problem on ITAdmin by configuring the network properties for the interface. A. At the prompt, type nano /etc/sysconfig/network-scripts/ifcfg-enp2s0 and press Enter to edit the file. B. Update the NETMASK line: 255.255.255.0 C. Press Ctrl + x to exit the editor. D. Type y to save the file; then press Enter. E. Reset the interface card: Type ip link set enp2s0 down and press Enter to bring the interface down. Type ip link set enp2s0 up and press Enter to bring the interface back up with the new configuration. E. Type ping -c4 192.168.0.30 and press Enter to verify connectivity to a host on the network. The ping succeeds.
Your company has begun using Git to help track changes for the files being developed for several projects. You have already cloned and are working with a repository named repo1. The repo1 repository has been cloned to your /home/vedwards/projects folder. In this lab, your task is to use Git to: Pull updates for the repo1 repository from the remote Git server to your local machine. Clone the repo2 repository from the remote Git server to your projects folder on your local machine.
Required Actions Pull updates to projects/repo1 Clone repo2 to the projects folderShow Details Complete this lab as follows: 1. Pull updates from the remote Git server to your local repo1 repository. A. From the Favorites bar, select Terminal. B. At the prompt, type cd projects/repo1 and press Enter. C. Type ls -la and press Enter to verify that repo1 is a valid repository. A folder named .git is shown. This confirms that this is a Git repository. D. Type git pull and press Enter. The updated repo content is pulled down to your system. E. Type ls -l and press Enter to verify that the new content was pulled down from the Git server. 2. Clone the repo2 repository to your /home/vedwards/projects folder. A. At the prompt, type cd .. and press Enter. B. Type git clone repo2 and press Enter. The new repo is cloned. C. Type ls -l and press Enter to verify that the repo2 repository was cloned to your system. A directory named repo2 is shown. This directory contains the new repository.
To prevent users from using too much disk space, you have implemented hard and soft quotas on the root directory (/). Today, you noticed that the quotas are turned off. Complete this lab from the Terminal. In this lab, your task is to: Re-enable quotas for users and groups on the root directory (/).
Required Actions Re-enable user quotas for the root directory Re-enable group quotas for the root directory Complete this lab as follows: 1. Re-enable quotas for users and groups on the root directory (/). A. From the Favorites bar, select Terminal. B. At the prompt, type quotaon / and then press Enter to enable quotas for the root directory.
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.
Required Actions Reboot the system in 5 minutes Complete this lab as follows: 1. Reboot the server in 5 minutes using the default warning message. A. From the Favorites bar, select Terminal. B. At the prompt, type shutdown -r +5. C. Press Enter to send the default message to logged-in users, give them 5 minutes to disconnect, and reboot the system.
The White Horse project (which you, Will Adams, have been working on) is complete. Everything produced under the code name has been backed up and removed from the server. You now need to remove the White Horse directory structure from your local system. Complete this lab from the Terminal. In this lab, your task is to: Use a single command to delete the /home/wadams/wh directory and all of its contents. The rmdir command only works if the directory is empty.
Required Actions Remove the /home/wadams/wh directory and its contentsShow Details Complete this lab as follows: 1. Delete the /home/wadams/wh directory and all of its contents. A. From the Favorites bar, select Terminal. B. Type rm -rf wh at the prompt. C. Press Enter to delete the directory and all of its contents.
You have a Linux workstation that you use at home. You are the only person that uses this computer. You want to improve security by removing the SUID and SGID from some files. Complete this lab from the Terminal. In this lab, your task is to: Remove the SUID from the following files: /usr/bin/gpasswd /usr/bin/newgrp Remove the SGID from the following files: /usr/bin/wall /usr/bin/write Leave permissions on the files as they are.
Required Actions Remove the SUID for the /usr/bin/gpasswd file Remove the SUID for the /usr/bin/newgrp file Remove the SGID for the /usr/bin/wall file Remove the SGID for the /usr/bin/write file Complete this lab as follows: 1. Remove the SUID from the required files. A. From the Favorites bar, select Terminal. B. At the prompt, type chmod u-s /usr/bin/gpasswd and press Enter to remove the SUID. C. Type chmod u-s /usr/bin/newgrp and press Enter to remove the SUID. 2. Remove the SGID from the required files. A. Type chmod g-s /usr/bin/wall and press Enter to remove the SGID. B. Type chmod g-s /usr/bin/write and press Enter to remove the SGID.
Earlier in the day, you created a user account for Brenda Cassini (bcassini). When she tries to log in, she is unsuccessful. You realize that you misspelled her username as bcasini. You are logged on as wadams, so you will have to address this issue as the root user. The root password is 1worm4b8. Complete this lab from the Terminal. In this lab, your task is to: Change the login name from bcasini to bcassini. Change the home directory to /home/bcassini. When you are finished, view the /etc/passwd file to verify the changes.
Required Actions Rename the bcasini account to bcassini Change the home directory to /home/bcassini Complete this lab as follows: Option 1 1. Switch to the root user. A. From the Favorites bar, select Terminal. B. At the prompt, type su - and press Enter to change to the root user. C. Type 1worm4b8 as the root password and press Enter. 2. Change the login name from bcasini to bcassini. A. Type usermod -l bcassini bcasini and press Enter to change the account name. 3. Change the home directory to /home/bcassini. A. Type usermod -d /home/bcassini bcassini and press Enter to change bcassini's home directory. B. Use cat /etc/passwd and press Enter to verify the changes.
Brenda Cassini (bcassini) was recently married. Her name is now Brenda Palmer. You need to update her user account to reflect her new last name. In this lab, your task is to: Rename Brenda's user account bpalmer. Change the comment field to read Brenda Palmer. Change Brenda's home directory to /home/bpalmer, moving the contents of the old home directory to the new location. View the /etc/passwd file and the /home directory to verify the modification.
Required Actions Rename the bcassini user account bpalmer Change the comment field to Brenda Palmer Change the home directory to /home/bpalmer Move the home directory contents Complete this lab as follows: 1. Update Brenda's account information. A. From the Favorites bar, select Terminal. B. At the prompt, type usermod -c "Brenda Palmer" -d /home/bpalmer -m -l bpalmer bcassini and press Enter. 2. Verify the changes. A. Type cat /etc/passwd and press Enter. B. Type ls /home and press Enter to verify that the account was modified.
All the sales people in your company currently belong to a group named sales. The VP of sales wants to have two sales groups, one for the western division and one for the eastern division. In this lab, your task is to: Rename the existing sales group western_sales. Create the new eastern_sales group. Remove aespinoza as a member of the western_sales group. Assign aespinoza as a member of the eastern_sales group. When you're finished, view the /etc/group file or use the groups command to verify the changes.
Required Actions Rename the sales group to western_sales Create the eastern_sales group Remove aespinoza from the western_sales group Add aespinoza to the eastern_sales group Verify the changes using the cat or groups command Complete this lab as follows: 1. Rename the sales group to western_sales. A. From the Favorites bar, select Terminal. B. At the prompt, type groupmod -n western_sales sales and press Enter. 2. Create the eastern_sales group. A. Type groupadd eastern_sales and press Enter. 3. Remove aespinoza from the western_sales group and add her to the eastern_sales group. A. Type usermod -G eastern_sales aespinoza and press Enter to modify group membership. When you assign aespinoza to the eastern_sales group with the usermod -G option, the user account is removed from the western_sales group. B. Use cat /etc/group or groups aespinoza to verify the aespinoza's group membership.
.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.
Required Actions Run apt update to update the repositories Install the htdig utility with apt install htdig Complete this lab as follows: 1. Run apt update to update the repositories before installing a package. A. From the Favorites bar, select Terminal. B. From the prompt, type apt update and press Enter. 2. Install the htdig utility. A. From the prompt, type apt install htdig. B. Type Y and press Enter to continue.
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.
Required Actions Set Target Verify that the current default target is rescue.target Complete this lab as follows: 1. Set the default target to rescue.target. A. From the Favorites bar, select Terminal. B. At the prompt, type systemctl set-default rescue.target and press Enter to change the default boot target to rescue.target. 2. Verify that the current default target is rescue.target. A. Type systemctl get-default and press Enter to verify that the current default target is rescue.target.
You have a Linux workstation, which you use at home for browsing the internet, playing music, and writing letters. When you run your MP3 player, it sometimes pauses in playback. You have heard that you might be able to alleviate the problem by raising the priority of the program. You decide to set the SUID bit to automatically run the program as root and, thereby, raise its priority. Complete this lab from the Terminal. In this lab, your task is to: Set the SUID bit for the /usr/bin/xmms program. Do not change any other permissions on the file.
Required Actions Set the SUID bit on /usr/bin/xmms Complete this lab as follows: 1. Set the SUID bit for the /usr/bin/xmms program. A. From the Favorites bar, select Terminal. B. At the prompt, type one of the following commands: chmod u+s /usr/bin/xmms chmod 4755 /usr/bin/xmms C. Press Enter to add the SUID bit to the file without changing the other permissions.
Salman Chawla (schawla) forgot his password and needs access to the resources on his computer. You are logged on as wadams. The password for the root account is 1worm4b8. In this lab, your task is to: Change the password for the schawla user account to G20oly04 (0 is a zero). Make sure that the password is encrypted in the shadow file. Do not use the usermod -p command to change the password, as this stores the unencrypted version of the password in the /etc/shadow file.
Required Actions Set the password for the schawla user to G20oly04 Complete this lab as follows: 1. Create a new password for Salman Chawla. A. From the Favorites bar, select Terminal. B. At the prompt, type su -c "passwd schawla" and press Enter. C. Type 1worm4b8 and press Enter for the root user password. You will not see the password as it is being typed. D. Type G20oly04 and press Enter for the new password for the schawla user account. E. Type G20oly04 as the new password and press Enter.
The Sales team uses the /sales directory to store documents related to sales, contacts, and orders. Currently, permissions on the directory only allow the user and group owners to view the contents of the directory. Users who are not part of the group owner are unable to list the contents of the directory. As part of a new company policy to increase teamwork, you want to allow all users to be able to see the /sales directory and list its contents. You also want to let all users open any document inside that directory, but you do not want them to make changes to the documents. Complete this lab from the Terminal. In this lab, your task is to: Allow the group other to browse the /sales directory. Modify permissions on all files in the /sales directory to allow members of the other group to view the files, but prohibit them from changing them.
Required Actions Set the permissions for /salesShow Details Add the read other permission for /sales/contacts Add the read other permission for /sales/goals Add the read other permission for /sales/orders Add the read other permission for /sales/products Add the read other permission for /sales/stats Complete this lab as follows: 1. Allow the group other to browse the /sales directory. A. From the Favorites bar, select Terminal. B. At the prompt, type chmod o+rx /sales and press Enter to enable the other group to browse the /sales directory. The read and execute permissions are necessary to see the directory and list its contents. 2. Modify permissions on all files in the /sales directory to allow members of the other group to view the files but prohibit them from changing them. A. Type chmod o+r /sales/* and press Enter to allow the other group to read all documents in the /sales directory.
The human resources team uses the /hr directory to keep important employee documents. Over time, you notice that permissions set on each file have become inconsistent. You want to make sure that all files in the /hr directory have the same permissions settings. You must modify the file permissions to be -rw-rw---- (the octal equivalent of 110 110 000 = 660). Complete this lab from the Terminal. In this lab, your task is to: Configure permissions on all files in the /hr directory as follows: User and group owners should have Read and Write permissions to the files. All other users should have no permissions on any file. Use the ls command to verify your changes.
Required Actions Set the permissions for the /hr/contacts fileShow Details Set the permissions for the /hr/evaluations file Set the permissions for the /hr/payroll fileShow Details Set the permissions for the /hr/personnel fileShow Details Set the permissions for the /hr/stats fileShow Details Complete this lab as follows: 1. Configure permissions on all files in the /hr directory. A. From the Favorites bar, select Terminal. B. At the prompt, type chmod 660 /hr/* and press Enter to set the permissions on all files in the /hr folder to the same permissions. C. Type ls -la /hr and press Enter to verify the changes.
Sam Chan (schan) has reached his user quota limit, and he wants more space. Your manager has approved an increase in his quota limit. Complete this lab from the Terminal. In this lab, your task is to: Increase the hard and soft block limits on the schan user account to 1048576 KB (1 GB). Generate a quota report to confirm the changes.
Required Actions Set the soft block limit to 1048576 KB Set the hard block limit to 1048576 KB Complete this lab as follows: 1. Increase the hard and soft block limits on the schan user account. A. From the Favorites bar, select Terminal. B. At the prompt, type edquota -u schan and press Enter to open the schan quota file. C. Press 1 and Enter to open the editor. D. Move the cursor under soft and delete 9216. E. Type 1048576 (use the Delete key to take out any extra spaces caused by the insertion). F. Move the cursor under hard and delete 10240. G. Type 1048576 (use the Delete key to take out any extra spaces caused by the insertion). 2. Save the changes. A. Press Ctrl + x to exit the editor. B. Press the y key to save your changes. C. Press Enter. 3. Generate a quota report to confirm the changes. A. Type repquota -a and press Enter to generate the report and confirm the changes.
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.
Required Actions Shut the system down Complete this lab as follows: 1. Shut down the server immediately from the command prompt. A. At the Terminal prompt, type shutdown -h now to immediately shut down the system. B. Press Enter. The screen goes blank, indicating that the computer has been shut down.
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. After each command, you can check the service status with the systemctl command.
Required Actions Start bluetooth.service Stop bluetooth.service Restart bluetooth.service Complete this lab as follows: 1. Start the bluetooth.service. A. From the Favorites bar, select Terminal. B. At the prompt, type systemctl start bluetooth.service and press Enter to start bluetooth.service. C. (Optional) At the prompt, type systemctl status bluetooth.service and press Enter to verify that the service is running. 2. Stop the bluetooth.service. A. Type systemctl stop bluetooth.service and press Enter to stop bluetooth.service. B. (Optional) At the prompt, type systemctl status bluetooth.service and press Enter to verify that the service is dead. 3. Restart the bluetooth.service. A. Type systemctl restart bluetooth.service and press Enter to restart bluetooth.service. B. (Optional) At the prompt, type systemctl status bluetooth.service and press Enter to verify that the service is running.
You have experienced some network connectivity issues, and you suspect the issue may be one of the NICs in your computer. Complete this lab from the Terminal. In this lab, your task is to: Stop the enp2s1 NIC as the first step to isolating the problem. Verify that enp2s1 is down.
Required Actions Stop the enp2s1 network interface card Complete this lab as follows: 1. Stop the enp2s1 NIC as the first step to isolating the problem. A. From the Favorites bar, select Terminal. B. At the prompt, type one of the following commands and press Enter to stop the enp2s1 network interface: ifdown enp2s1 ip link set enp2s1 down 2. Verify that enp2s1 is down. A. Type one of the following commands and press Enter to verify that enp2s1 is down: ip addr ip addr show ip addr show enp2s1 ifconfig -a
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.
Required Actions Uninstall the RunSnakeRun.noarch package Complete this lab as follows: 1. Uninstall the RunSnakeRun package. A. From the Favorites bar, select Terminal. B. At the prompt, type dnf remove RunSnakeRun.noarch and press Enter. C. Press Y and press Enter to uninstall the package
The VP of Marketing has told you that Paul Denunzio will join the company as a market analyst in two weeks. You need to create a new user account for him. In this lab, your task is to: Create the pdenunzio user account. Include the full name (Paul Denunzio) as a comment for the user account. Set eye8cereal as the password for the user account. When you're finished, view the /etc/passwd file to verify the creation of the account. Answer the question.
Required Actions & Questions Create the pdenunzio user account Add Paul Denunzio as a comment for the user account Set eye8cereal as the password Q1What is Paul Denunzio's user ID? Your answer: 510 Correct answer: 510 Complete this lab as follows: 1. Create a user. A. From the Favorites bar, select Terminal. B. At the prompt, type useradd -c "Paul Denunzio" pdenunzio and press Enter to create the user and set the comment in a single command. 2. Create a password for the new user. A. Type passwd pdenunzio and press Enter. B. Type eye8cereal as the password and press Enter. C. Retype eye8cereal as the password and press Enter. 3. View the passwd file and answer the question. A. Type cat /etc/passwd and press Enter to verify that the account was created. B. From the top right, select Answer Questions. C. Answer Question 1. D. Select Score Lab.
An employee in another department recently provided several important files for your current assignment. The files are compressed in a tar file. You need to extract each file so you can begin to use them. Complete this lab from the Terminal. In this lab, your task is to: Extract the files in /proj_files.tar.gz into the /projects directory. Answer the question.
Required Actions & Questions Extract the files in /proj_files.tar.gz into the /projects directoryShow Details Q1. Which files were extracted from the tar file? Correct answer: evals, history, records, temps Complete this lab as follows: 1. Extract the files in /proj_files.tar.gz into the /projects directory. A. From the Favorites bar, select Terminal. B. At the prompt, type tar -xzf /proj_files.tar.gz -C /projects and press Enter to extract the files from the tar file and place them in the /projects directory. 2. Determine which files were extracted. A. At the prompt, type ls -l /projects and press Enter. B. From the top right, select Answer Questions. C. Answer Question 1. D. From the Lab Questions dialog, select Score Lab.
Corey Flynn (cflynn) currently belongs to several groups. Due to some recent restructuring, he no longer needs to be a member of the hr group. Complete this lab from the Terminal. In this lab, your task is to: Find the groups to which Corey currently belongs. Answer Question 1. Remove cflynn from the hr group while preserving all other group memberships. View the /etc/group file or use the groups command to verify the changes.
Required Actions & Questions Q1. Including the primary group, how many groups is Corey a member of? Correct answer: 4 Remove cflynn from the hr group Keep cflynn as a member of the it group Keep cflynn as a member of the mgmt1 group Complete this lab as follows: 1. Learn the groups to which Corey is currently a member of. A. From the Favorites bar, select Terminal. B. At the prompt, type groups cflynn and press Enter to view a list of all groups to which the user belongs. C. From the top right, select Answer Questions. D. Answer Question 1. 2. Remove cflynn from the hr group while preserving all other group memberships. A. Type usermod -G mgmt1,it cflynn and press Enter to change group membership. B. Type groups cflynn and press Enter to verify the user account's group membership. C. From the Lab Questions dialog, select Score Lab.
An assistant administrator has been modifying permissions on the /hr directory. You want to quickly change the permissions on /hr to match the permission settings documented in your company's security policy. You must modify the directory permissions to be drwxr-xr-x (the octal equivalent of 111 101 101 = 755). Complete this lab from the Terminal. In this lab, your task is to: Determine the current permissions for the /hr directory. Answer the question. Modify the permissions on the /hr directory as follows: User: Read, Write, Execute Group: Read, Execute Other: Read, Execute
Required Actions & Questions Q1. What are the current permissions for the /hr directory? Correct answer: rwxr--r-- Set the permissions on the /hr directory to drwxr-xr-x (755) Complete this lab as follows: 1. Determine the current permissions for the /hr directory. A. From the Favorites bar, select Terminal. B. At the prompt, type ls -la /hr and press Enter. C. From the top right, select Answer Questions. D. Answer Question 1. 2. Modify the permissions on the /hr directory to rwxr-xr-x. A. From the Terminal prompt, type chmod 755 /hr and press Enter to set these permissions on the /hr directory. B. At the prompt, type ls -l / and press Enter to verify the change.
The CEO of the company wants to make sure that the employees' personal information, as stored in the /hr/personnel file, is protected. The CEO has asked that you make sure that the human resources (HR) department is the owner of that file. Complete this lab from the Terminal. In this lab, your task is to: Find the current owner of the /hr/personnel file. Answer the question. Change the group ownership of the /hr/personnel file to the hr group. Verify the ownership change.
Required Actions & Questions Q1. Which group is the current owner of the /hr/personnel file? Correct answer: mgmt1 Change the group ownership for the /hr/personnel file to hr Complete this lab as follows: 1. Determine which group is the current owner of the /hr/personnel file. A. From the Favorites bar, select Terminal. B. At the prompt, type ls -l /hr and press Enter to find the current file ownership. C. From the top right, select Answer Questions. D. Answer Question 1. 2. Change the group ownership of the /hr/personnel file. A. At the prompt, type one of the following commands and press Enter: chgrp hr /hr/personnel chown .hr /hr/personnel chown :hr /hr/personnel B. Type ls -l /hr and press Enter to verify the ownership change. C. From the Lab Questions dialog, select Score Lab.
The VP of sales has promoted Salman Chawla (schawla) to regional sales director. Now, Salman needs the rights and permissions assigned to the mgmt2 and hr groups. You are logged on as root. Complete this lab from the Terminal. In this lab, your task is to: Identify all the groups that the schawla user belongs to. Answer Questions 1 and 2. Add mgmt2 and hr as secondary groups for the schawla user, but make sure that the user is still a member of all current groups. View the /etc/group file to verify the changes.
Required Actions & Questions Q1. Which groups does schawla currently belong to? Correct answer: mgmt1, sales, schawla Q2. Which group is Salman's primary group? Correct answer: schawla Make schawla a member of the hr group Make schawla a member of the mgmt2 group Complete this lab as follows: 1. Locate the groups that Salman belongs to. A. From the Favorites bar, select Terminal. B. At the prompt, type groups schawla and press Enter to view a list of all groups that the user belongs to. C. From the top right, select Answer Questions. D. Answer Questions 1 and 2. 2. Add mgmt2 and hr as secondary groups for the schawla user. A. From the Terminal prompt, type usermod -aG mgmt2,hr schawla and press Enter to add hr and mgmt2 to the secondary group memberships for the schawla user account. 3. Verify the changes. A. Type groups schawla or cat /etc/group and press Enter to verify the changes. B. From the Lab Questions dialog, select Score Lab.
You share a number of files from your computer, and you have received a number of calls from users who say they cannot connect to the files. You check your computer and find that the Ethernet cable is unplugged. You have plugged the Ethernet cable in, so you need to start the network interface card. Complete this lab from the Terminal. In this lab, your task is to: Determine which network interface went down when it was unplugged. Start the network interface from the command line.
Required Actions & Questions Q1. Which network interface went down when it was unplugged? Correct answer: enp2s1 Start the enp2s1 network interface card Complete this lab as follows: 1. Determine which network interface went down when it was unplugged. A. From the Favorites bar, select Terminal. B. At the prompt, type one of the following commands and press Enter to view information about the network interfaces to determine which card is not up and to identify the card alias. (The alias for the network interface that is down is enp2s1.) ip addr ip addr show C. From the top right, select Answer Questions. D. Answer Question 1. 2. Start the network interface from the command line. A. Type one of the following commands and press Enter to start the applicable network interface: ifup enp2s1 ip link set network_card up B. At the prompt, type ip addr show enp2s1 to verify that the interface is active. C. From the Lab Questions dialog, select Score Lab.
You want to change your default umask to give yourself and members of the groups to which you belong full permissions to the files and directories you create. You want to deny permissions for everyone else. You are logged on as wadams. Complete this lab from the Terminal. You cannot create a file with execute permissions. You can only create a directory with execute permissions. After a file is created, its permissions can be changed to include execute. In this lab, your task is to: Change your default umask value to give yourself and members of the groups to which you belong full permissions to the files and directories that you create.
Required Actions & Questions Q1What is the current umask value? Correct answer: 0022 Set the umask for wadams Complete this lab as follows: 1. Determine the current umask for Will Adams. A. From the Favorites bar, select Terminal. B. At the prompt, type umask and then press Enter to view the current umask value. C. From the top right, select Answer Questions. D. Answer Question 1. 1. Change your default umask value to give yourself and members of the groups to which you belong full permissions to the files and directories that you create. A. At the prompt, type umask 007 and press Enter to set the umask value. B. At the prompt, type umask and then press Enter to view the current umask value. C. From the Lab Questions dialog, select Score Lab.
Your Linux system named Support has been running slow when trying to access a remote computer on the internet. To help troubleshoot the issue, you want to know what route your computer is using to access the remote computer. Complete this lab from the Terminal. In this lab, your task is to: Use the exhibits to locate the IP address of the external DNS server. Answer Question 1. Use the command necessary to find the route used to access the external DNS server. Answer Questions 2 through 5. Use the command necessary to find the route used to access the remote computer using the 10.10.20.10 IP address. Answer Questions 6 and 7.
Required Actions & Questions Run traceroute to find the route to the external DNS server Q1. What is the IP address of the external DNS server ? Correct answer: 163.128.78.93 Q2. What is the IP address of the default gateway (hop 1)? Correct answer: 192.168.0.5 Q3. What is the IP address of the CorpNet main router (hop 2)? Correct answer: 198.28.56.1 Q4. What is the IP address of the network security appliance (hop 3)? Correct answer: 198.28.56.18 Q5. What is the IP address of the ISP internet router (hop 4)? Correct answer: 198.28.2.254 Run traceroute to find the route to 10.10.20.10? Q6. How many routers are in the path between Support and the remote computer? Correct answer: 6 Q7. What is the IP address of the last router in the path between Support and the remote computer? Correct answer: 73.44.216.7 Complete this lab as follows: 1 Locate the IP address of the external DNS server. A. From the Favorites bar, select Terminal. B. From the top right, select Exhibits. C. From the top right, select Answer Questions. D. Answer Question 1. E. Close the exhibit. 2. Find the route to the external DNS server. A. From the prompt, type traceroute 163.128.78.93 or traceroute 163.128.80.93 and press Enter. B. Answer Questions 2 through 5. 3. Find the route to a remote computer. A. From the prompt, type traceroute 10.10.20.10 and press Enter. B. Answer Questions 6 and 7. C. From the Lab Questions dialog, select Score Lab.
You suspect that one of the storage devices on your system has failed. Your need to identify which device it is. In this lab, your task is to: Find out if a device has failed. Use the appropriate command to list devices and their utilization. Answer the question.
Required Actions & Questions Use iostat to lists devices and their utilization Q1Which device (if any) has failed? Your answer: Correct answer: All of the devices appear to be working properly Complete this lab as follows: 1. Use iostat to lists devices and their utilization. A. From the Favorites bar, select Terminal. B. From the prompt, type iostat and press Enter. 2. Answer the questions. A. From the top right, select Answer Questions. B. Answer the question. C. Select Score Lab. Be sure to identify devices (not partitions).
Listen to simulation instructions You are considering adding an additional hard disk to your system. Before doing so, you need to find out what block devices are connected to your Linux system. Complete this lab from the Terminal. In this lab, your task is to: Use the appropriate tool to list the block devices on your system. Answer the questions.
Required Actions & Questions Use lsblk to list the block devices Q1. How many physical storage devices are connected to the system? Correct answer: 2 Q2. Which partition is mounted as /home? Correct answer: sda3 Complete this lab as follows: 1. Use lsblk to list the block devices connected to the system. A. From the Favorites bar, select Terminal. B. From the prompt, type lsblk and press Enter. 2. Answer the questions. A. From the top right, select Answer Questions. B. Answer all questions. C. Select Score Lab.
You need to ensure that email is routed from the internet to your mail server. You want to know the mail server address for corpnet.xyz. Complete this lab from the Terminal. In this lab, your task is to: Query the default DNS server for the primary IP address of the corpnet.xyz domain. Query the default DNS server for the corpnet.xyz mail server and determine its IP address. Confirm the corpnet.xyz mail server information by querying the external DNS server (ns1.nethost.net).
Required Actions & Questions Use nslookup -type=mx to query the DNS server. Q1. What is the primary IP address for the corpnet.xyz domain? Correct answer: 198.28.1.1 Q2. What is the IP address of the server that receives mail for corpnet.xyz? Correct answer: 198.28.1.3 Q3. Does the external DNS server match the internal DNS server regarding the corpnet.xyz mail server? Correct answer: Yes Complete this lab as follows: 1. Use nslookup to find the primary IP address for the corpnet.xyz domain. A. From the Favorites bar, select Terminal. B. At the prompt, type nslookup corpnet.xyz and press Enter. C. From the top right, select Answer Questions. D. Answer Question 1. 2. Use nslookup to find the mail server for corpnet.xyz and its IP address: A. At the prompt, type nslookup -type=mx corpnet.xyz and press Enter. B. At the prompt, type nslookup corpnet-www3.corpnet.xyz and press Enter. C. Answer Question 2. 3. Use nslookup to confirm the corpnet.xyz mail server information by querying the external DNS server (ns1.nethost.net). A. At the prompt, type nslookup -type=mx corpnet.xyz ns1.nethost.net and press Enter. B. Answer Question 3. C. Select Score Lab.
As part of a security sweep of your systems, you need to check to see if the /etc/hosts file has been tampered with. Complete this lab from the Terminal. In this lab, your task is to: Find out if the modified date for the /etc/hosts file is different from its creation date. Use the appropriate command that lists both modify time and creation time. Answer the questions.
Required Actions & Questions Use stat on the /etc/hosts file Q1. What is the modify time? Correct answer: 2021-03-31 04:56:00.00 -0600 Q2. What is the birth time? Correct answer: 2021-03-31 04:56:00.00 -0600 Q3. Has /etc/hosts been modified since the machine was installed? Correct answer: No Complete this lab as follows: 1. Find out if the modified date for the /etc/hosts file is different from its creation/birth date. A. From the Favorites bar, select Terminal. B. From the prompt, type stat /etc/hosts and press Enter. 2. Answer the questions. A. From the top right, select Answer Questions. B. Answer all of the questions. C. Select Score Lab.
You are concerned that you may be getting low on disk space. You want to check and see if that assumption is correct. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable command to view the current disk space in human readable form. To find the correct option, use man command. Answer the questions.
Required Actions & Questions Use the df -h command to view the current disk space in human readable form Q1. How much space is used on /dev/sda2? Correct answer: 2.9G Q2. How much space is still available on /dev/sda2? Correct answer: 1.1G Q3. What percentage of space is used on /dev/sda1? Correct answer: 52% Complete this lab as follows: 1. Determine the amount of free disk space. A. From the Favorites bar, select Terminal. B. From the prompt, type df -h and press Enter to view the disk information. C. From the top right, select Answer Questions. D. Answer all questions. E. From the Lab Questions dialog, select Score Lab.
You are logged on as Will Adams (wadams), and your working directory is /home/wadams. You need to know some information about the disk usage for Will's home directory. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable command to view the disk usage for the /home/wadams directory. Answer the questions.
Required Actions & Questions Use the du command to view the disk usage Q1. How big is the /home/wadams directory? Correct answer: 100 K Q2. What is the largest directory in /home/wadams? Correct answer: ./.config Q3. What is the size of the ./.config/ibus/bus directory? Correct answer: 40 K Complete this lab as follows: 1. View the disk usage for the /home/wadams directory. A. From the Favorites bar, select Terminal. B. From the prompt, type du and press Enter to view the disk usage information. C. From the top right, select Answer Questions. D. Answer all questions. E. From the Lab Questions dialog, select Score Lab.
You are logged on as the root user. Will Adams (wadams) has forgotten the system quotas that you configured for him. He has asked that you remind him. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable quota command to view Will's quotas. Answer the questions.
Required Actions & Questions Use the quota -u wadams command to find Will's quotas Q1. What is the blocks quota? Correct answer: 18432 Q2. What is the blocks limit? Correct answer: 20480 Q3. What is the files quota? Correct answer: 500 Q4. What is the files limit? Correct answer: 550 Complete this lab as follows: 1. Find the quotas set for wadams. A. From the Favorites bar, select Terminal. B. At the prompt, type quota -u wadams and then press Enter. C. From the top right, select Answer Questions. D. Answer all questions. E. From the Lab Questions dialog, select Score Lab.
You are an IT administrator for your company's Linux system. You need to generate a quota report for your supervisor regarding the quota usage for the system. Complete this lab from the Terminal. In this lab, your task is to: Use the applicable command to generate a quota report for all filesystems. Answer the questions.
Required Actions & Questions Use the repquota -a command to view disc usage and quotas for all filesystems Q1. Which user does not have a quota limit? Correct answer: root Q2. What is the hard block limit for most users? Correct answer: 10240 Q3. What is the soft block limit for most users? Correct answer: 9216 Q4. What is the highest hard block limit? Correct answer: 20480 Q5. Which user has the highest hard block limit? Correct answer: wadams Complete this lab as follows: 1. Generate a quota report for all file systems. A. From the Favorites bar, select Terminal. B. At the prompt, type repquota -a and then press Enter. C. From the top right, select Answer Questions. D. Answer all questions. E. From the Lab Questions dialog, 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.
Required Actions & Questions Use top to see the running processes Q1. What is the name of the process consuming the most CPU time? Correct answer: kthreadd Q2. What percentage of the overall utilization is being used by the CPU? Correct answer: 0 Complete this lab as follows: 1. Use top to see running processes. A. From the Favorites bar, select Terminal. B. From the prompt, type top and press Enter. 2. Answer the questions. A. From the top right, select Answer Questions. B. Answer all of the questions. C. Select Score Lab.
Explore putting a process in the background and then bringing it back to the foreground. Complete this lab as follows: Run the ping command in the background. From the Favorites bar, select Terminal. At the prompt, type ping localhost & and press Enter to launch ping in the background. Ping continues to run in the background and its output is shown on the screen. You can still interact with the console and run other commands in the foreground. Explore cthe results of running ping in the background. Press CTRL + C. This would normally stop the ping. However, the command is not recognized because ping is in the background. Type cd /etc and press Enter. Notice that the path is changed. Type ls and press Enter. Notice that the output of ls is interspersed with the output of ping runninterm-82g in the background. Bring the ping command back to the foreground Type fg and press Enter to bring the ping command back to the foreground. Ping is now running in the foreground and the console will not allow other commands to be run. Try to type ls. Notice that the typing is ignored. Press CTRL + C. The ping command is now terminated since it is in the foreground.
Run ping localhost & Run ls Run fg Complete this lab as follows: 1. Run the ping command in the background. A. From the Favorites bar, select Terminal. B. At the prompt, type ping localhost & and press Enter to launch ping in the background. Ping continues to run in the background and its output is shown on the screen. You can still interact with the console and run other commands in the foreground. 2. Explore the results of running ping in the background. A. Press CTRL + C. This would normally stop the ping. However, the command is not recognized because ping is in the background. B. Type cd /etc and press Enter. Notice that the path is changed. C. Type ls and press Enter. Notice that the output of ls is interspersed with the output of ping running in the background. 2. Bring the ping command back to the foreground. A. Type fg and press Enter to bring the ping command back to the foreground. Ping is now running in the foreground and the console will not allow other commands to be run. B. Try to type ls. Notice that the typing is ignored. C. Press CTRL + C. The ping command is terminated because it is in the foreground.
You are working with the files and directories on your Linux system. Complete this lab from the Terminal. In this lab, your task is to: Locate your current working directory. Answer Question 1. View the detailed information for the /hr directory. Answer Questions 2 and 3. See if there are any hidden files in the /hr directory. Answer Question 4.
TASK SUMMARY Lab Questions Q1. What is the current working directory? Correct answer: /home/wadams Q2. What is the size of the /hr directory? Correct answer: 12586 Q3. What is the modified date for the /hr directory? Correct answer: Jun 30 Q4. What is the name of the hidden directory? Correct answer: .sanford Complete this lab as follows: 1. Find the current working directory. A. From the Favorites bar, select Terminal. B. At the prompt, type pwd and then press Enter. C. In the upper right, select Answer Questions. D. Answer Question 1. 2. View the information for the /hr directory. A. At the prompt, type ls -l / and then press Enter. B. Answer Questions 2 and 3. 3. Find the hidden folder. A. At the prompt, type ls -a /hr and then press Enter. B. Answer Question 4. C. Select Score Lab.