Docsity

TESTOUT LINUX PRO EXAM 2025, Exams of Nursing

Toggle sidebar
bg1
TESTOUT LINUX PRO EXAM 2025-26 EXAM QUESTION AND
GURANTEED ANSWERS
0.1.3
In this lab, you will use several commands from the Terminal to manage files. You are currently
in the wadams home directory (/home/wadams).
In this lab, your task is to:
- Use the rm command to delete the old_myfile.txt file found in your home directory.
- Use the touch command to create the new_myfile.txt file in your home directory.
- Use nano or vi to add some text of your choosing to the new_myfile.txt file you just created.
- Use the cat command to view the changes you made to the file.
- Use the cp command to copy the new_myfile.txt file to the /home/wadams/practice directory.
- Use the mv command to rename /home/wadams/practice/new_myfile.txt to final_myfile.txt. -
CORRECT ANSWERS>>rm old_myfile.txt
touch new_myfile.txt
nano new_myfile.txt
(add some text)
cat new_myfile.txt
cp new_myfile.txt /home/wadams/practice
mv new_myfile.txt final_myfile.txt
10.1.10
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.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download TESTOUT LINUX PRO EXAM 2025 and more Exams Nursing in PDF only on Docsity!

TESTOUT LINUX PRO EXAM 2025 - 26 EXAM QUESTION AND

GURANTEED ANSWERS

In this lab, you will use several commands from the Terminal to manage files. You are currently in the wadams home directory (/home/wadams). In this lab, your task is to:

  • Use the rm command to delete the old_myfile.txt file found in your home directory.
  • Use the touch command to create the new_myfile.txt file in your home directory.
  • Use nano or vi to add some text of your choosing to the new_myfile.txt file you just created.
  • Use the cat command to view the changes you made to the file.
  • Use the cp command to copy the new_myfile.txt file to the /home/wadams/practice directory.
  • Use the mv command to rename /home/wadams/practice/new_myfile.txt to final_myfile.txt. - CORRECT ANSWERS>>rm old_myfile.txt touch new_myfile.txt nano new_myfile.txt (add some text) cat new_myfile.txt cp new_myfile.txt /home/wadams/practice mv new_myfile.txt final_myfile.txt 10.1. 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. - CORRECT ANSWERS>>ps aux > processes.txt grep rpc.mountd processes.txt pidof rpc.mountd 10.1. 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.
  • CORRECT ANSWERS the questions. - CORRECT ANSWERS>>ps aux | less 10.2. 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. - CORRECT ANSWERS>>ps aux | less q kill - 9 1301 kill - 9 1570 kill - 9 1980 10.2.

cd /etc ls fg ls CTRL + C 10.3. 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. - CORRECT ANSWERS>>crontab - l crontab - e 1 (On the blank line, type) 30 2 * * 2,6 /bin/updatedb Ctrl + x crontab - l 11.1. 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. - CORRECT ANSWERS>>journalctl - k q journalctl - r q 11.2. 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.
  • CORRECT ANSWERS the questions. - CORRECT ANSWERS>>uptime - s 11.2. 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.
  • CORRECT ANSWERS the questions. - CORRECT ANSWERS>>top kthreadd 0
  • Ping an external web server (www.corpnet.xyz) to confirm that DNS is configured properly. - CORRECT ANSWERS>>ip addr show cd /etc/sysconfig/network-scripts ls nano ifcfg-enp2s
  • IP address: 192.168.0.
  • Subnet mask: 255.255.255.
  • Broadcast: 192.168.0.
  • Default gateway: 192.168.0. Ctrl + X nano /etc/resolv.conf nameserver 163.128.78. nameserver 163.128.80. Ctrl + X ip link set enp2s0 down ip link set enp2s0 up ping - c4 192.168.0. ping - c4 163.128.80. ping - c4 www.corpnet.xyz 12.2. 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: - CORRECT ANSWERS>>IT Laptop --

ping - c4 192.168.0. ping - c4 199.92.0. ping - c4 192.168.0. ping - c4 163.128.78. cd /etc/sysconfig/network-scripts ls cat ifcfg-enp2s Office 2 ----------- traceroute 198.28.56. traceroute 163.128.78. 12.2. 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. - CORRECT ANSWERS>>ip addr ip link set enp2s1 up ip addr show enp2s 12.6.

systemctl restart apache ss - lt netstat - a 12.7. 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.
  • CORRECT ANSWERS the question. - CORRECT ANSWERS>>iptables - L 12.8. 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.
  • CORRECT ANSWERS Question 1.
  • Use the command necessary to find the route used to access the external DNS server.CORRECT ANSWERS 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.
  • CORRECT ANSWERS Questions 6 and 7. - CORRECT ANSWERS>>--Exhibits-- traceroute 163.128.78. traceroute 10.10.20.

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 - CORRECT ANSWERS>>Support Terminal ----- ping - c4 192.168.0. ping - c4 192.168.0. ip addr nano /etc/sysconfig/network-scripts/ifcfg-enp2s IPADDR: 192.168.0. BROADCAST: 192.168.0. GATEWAY: 192.168.0.5 Ctrl-X ip link set enp2s0 down ip link set enp2s0 up

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. - CORRECT ANSWERS>>cd projects/repo ls - la git pull ls - l cd .. git clone repo ls - l 15.1. 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. - CORRECT ANSWERS>>su - 1worm4b usermod - l bcassini bcasini usermod - d /home/bcassini bcassini cat /etc/passwd 15.1.

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. - CORRECT ANSWERS>>logout 15.1. 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.
  • Use the cat command to verify the changes. - CORRECT ANSWERS>>sudo nano /etc/hosts 6or7en 192.168.122.84 potato.corpnet.local potato 192.168.122.85 radish.corpnet.local radish 192.168.122.86 lettuce.corpnet.local lettuce Ctrl+X y cat /etc/hosts 15.1. To limit the number of people who know the root password on the computer used by the marketing team, you need to designate a user that can use sudo to manage the system. You are currently logged in as the root user. Complete this lab from the Terminal. In this lab, your task is to:
  • Use the applicable utility to give wadams sudo privileges as a regular user.
  • Verify that the change has taken effect as follows:
  • Use contacts_link as the name for the new hard links. - CORRECT ANSWERS>>ln /home/wadams/contacts.db /home/bcassini/contacts_link (^^^ ALL ONE COMMAND ^^^) ln /home/wadams/contacts.db /home/vedwards/contacts_link (^^^ ALL ONE COMMAND ^^^) 2.10. 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. - CORRECT ANSWERS>>ln - s /root/imitator /home/mbrown/imitator_link 2.12. 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.
  • CORRECT ANSWERS 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.
  • CORRECT ANSWERS Question 2. - CORRECT ANSWERS>>grep sales /etc/group

grep - r "The Fluid Data" * 2.2. 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.
  • CORRECT ANSWERS Question 1.
  • Learn the options available for the useradd command.
  • CORRECT ANSWERS Question 2.
  • Learn the options available for the usermod command.
  • CORRECT ANSWERS Question 3. - CORRECT ANSWERS>>killall --help useradd --help usermod --help 2.3. 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. - CORRECT ANSWERS>>vim /etc/pref_shell i SHELL=/bin/csh export SHELL Esc :

Ctrl + O Ctrl + X 2.5. 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
  • CORRECT ANSWERS the questions. - CORRECT ANSWERS>>echo $HOME echo $LANG echo $SHELL echo $TERM 2.8. 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.
  • CORRECT ANSWERS Question 1.
  • View the detailed information for the /hr directory.
  • CORRECT ANSWERS Questions 2 and 3.
  • See if there are any hidden files in the /hr directory.
  • CORRECT ANSWERS Question 4. - CORRECT ANSWERS>>pwd ls - l / ls - a /hr 2.8. 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 the creation of the directories. - CORRECT ANSWERS>>mkdir wh cd wh mkdir implement mkdir plan mkdir research ls - l /home/wadams/wh 2.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: