TESTOUT LINUX PRO EXAM QUESTIONS AND ANSWERS 2024 GRADED A
TESTOUT LINUX PRO EXAM QUESTIONS AND ANSWERS 2024 GRADED A 6.1.5 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-D15 package. Complete this lab from the Terminal. In this lab, your task is to: - Uninstall the ddd-C-D15 package. - Verify that the ddd-C-D15 package is uninstalled. Ans- rpm -e ddd-C-D15 rpm -q ddd-C-D15 2.9.6 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. Ans- cat /root/.bash_profile cat /etc/shells 8.9.6 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. Ans- ls -l /hr chgrp hr /hr/personnel ls -l /hr 8.6.3 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. Ans- mkdir /mnt/disk mount -t ext3 /dev/sdb1 /mnt/disk mount 12.8.6 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 ta Ans- Support Terminal ----- ping -c4 192.168.0.5 ping -c4 192.168.0.30 ip addr nano /etc/sysconfig/network-scripts/ifcfg-enp2s0 IPADDR: 192.168.0.32 BROADCAST: 192.168.0.255 GATEWAY: 192.168.0.5 Ctrl-X ip link set enp2s0 down ip link set enp2s0 up ip addr ping -c4 192.168.0.5 ping -c4 163.128.80.93 Office 2 Terminal ----- ping -c4 192.168.0.5 ping -c4 192.168.0.30 ping -c4 163.128.80.93 route nano /etc/sysconfig/network-scripts/ifcfg-enp2s0 GATEWAY: 192.168.0.5 ip link set enp2s0 down ip link set enp2s0 up ping -c4 163.128.80.93 ITAdmin Terminal ----- ping -c4 192.168.0.5 ping -c4 192.168.0.30 ip addr nano /etc/sysconfig/network-scripts/ifcfg-enp2s0 NETMASK: 255.255.255.0 ip link set enp2s0 down ip link set enp2s0 up ping -c4 192.168.0.30 8.5.8 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. Ans- mkfs -t ext3 /dev/sdb1 10.1.9 You are troubleshooting your Linux system and need to know some information about some of the currently running processes. Complete this lab from the Terminal. In this lab, your task is to: - Use the ps command, with the applicable options, to find information about the currently running processes. - Answer the questions. Ans- ps aux | less 10.2.10 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. Ans- ps aux | less q kill -9 1301 kill -9 1570 kill -9 1980 12.2.9 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. Ans- ip addr ip link set enp2s1 up ip addr show enp2s1 8.8.4 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. Ans- df -h 11.1.10 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. Ans- journalctl -k q journalctl -r q 8.2.5 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. Ans- fdisk -l 9.2.5 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. Ans- lsmod rmmod gameport lsmod 11.2.5 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. Ans- top kthreadd 0 8.12.4 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. Ans- chmod 4755 /usr/bin/xmms 2.8.8 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. Ans- cd /projects rmdir heartbt heartmon heartstrng ls -l /projects 8.12.5 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. Ans- chmod u-s /usr/bin/gpasswd chmod u-s /usr/bin/newgrp chmod g-s /usr/bin/wall chmod g-s /usr/bin/write 7.2.7 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. Ans- userdel -r thaslam cat /etc/passwd ls /home 8.11.4 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. 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. Ans- umask umask 007 umask 4.3.3 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 t, 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 t the current target. - After changing to t, log back in as root using 1worm4b8 as the password. Ans- systemctl isolate t 1worm4b8 2.10.5 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. Ans- ln -s /root/imitator /home/mbrown/imitator_link 7.2.10 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. Ans- usermod -L vedwards usermod -L cflynn usermod -L bkahn usermod -U mbrown usermod -U bcassini usermod -U aespinoza cat /etc/shadow 12.2.8 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: Ans- IT Laptop ---------- ping -c4 192.168.0.30 ping -c4 199.92.0.32 ping -c4 192.168.0.5 ping -c4 163.128.78.93 cd /etc/sysconfig/network-scripts ls cat ifcfg-enp2s0 Office 2 ----------- traceroute 198.28.56.1 traceroute 163.128.78.93 7.2.5 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. Ans- useradd -c "Paul Denunzio" pdenunzio passwd pdenunzio - eye8cereal - eye8cereal cat /etc/passwd 6.1.4 The IT manager in your organization has asked you to install the package. Complete this lab from the terminal. In this lab, your task is to: - Switch to the root user using a password of 1worm4b8. - Install the package.The package is located in the /home/wadams/Downloads directory. - Verify that the fontconfig package has been installed. Ans- su - 1worm4b8 rpm -ivh /home/wadams/Downloads/ rpm -q fontconfig 7.3.6 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. Ans- groups schawla usermod -aG mgmt2,hr schawla groups schawla 7.1.5 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. Ans- cat /etc/passwd 12.6.5 You need to ensure that email is routed from the internet to your mail server. You want to know the mail server address for . 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 domain. - Query the default DNS server for the mail server and determine its IP address. - Confirm the mail server information by querying the external DNS server (). Ans- nslookup nslookup -type=mx nslookup nslookup -type=mx 8.14.4 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_ into the /projects directory. - Answer the question. Ans- tar -xzf /proj_ -C /projects ls -l /projects 2.8.6 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. Ans- pwd ls -l / ls -a /hr 2.3.5 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/csh export SHELL - Save and close the file. Ans- vim /etc/pref_shell ................
Written for
- Institution
- TESTOUT LINUX PRO
- Course
- TESTOUT LINUX PRO
Document information
- Uploaded on
- April 21, 2024
- Number of pages
- 44
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
testout linux pro exam questions and answers 2024
-
there is a c debugger package installed on the ser
-
you are experiencing a few issues on your linux sy
-
the ceo of the company wants to make sure that t