Linux LPIC-1 Practice Exam Back to exams page. Take the Linux LPI-1 course here. Read our labs book on Amazon. 1. Which command provides the below output?modprobelsmodinsmodrmmodQuestion 1 of 50 2. During boot of a system with GRUB, which key allows the ability to go to a command shell and edit the configuration on boot?svshifteQuestion 2 of 50 3. The modules for the Linux OS kernel reside in the /lib/modules OS directoryTrueFalseQuestion 3 of 50 4. Put the Linux high-level boot process steps in order MBR executes GRUB Kernel executes Init GRUB executes Kernel BIOS executes MBR Init executes Runlevel programs Question 4 of 50 5. Which command is used to modify kernel parameters at runtime and also lists information about the parameters being passed to the kernel?sysctllsmodlskernelmodinfoQuestion 5 of 50 6. Which of the following commands provides below output?lsgatewayifconfigroutelsgwQuestion 6 of 50 7. Which directory contains the configuration files for network interfaces?/etc/network-scripts/etc/network-scripts/etc/sysconfig/network-scripts/var/network-scriptsQuestion 7 of 50 8. Mounted filesystems would not be re-mounted on reboot unless they have an entry in the which of the following file?/etc/mnt/proc/mounts/var/fstab/etc/fstabQuestion 8 of 50 9. Match the command with its usagefsck Used to check and repair filesystemUnselectUsed to print the superblock and block group informationUnselectUsed to adjust various filesystem parametersUnselectUsed to create an MBR partition on hard disksUnselecttune2fs Used to check and repair filesystemUnselectUsed to print the superblock and block group informationUnselectUsed to adjust various filesystem parametersUnselectUsed to create an MBR partition on hard disksUnselectdumpe2fs Used to check and repair filesystemUnselectUsed to print the superblock and block group informationUnselectUsed to adjust various filesystem parametersUnselectUsed to create an MBR partition on hard disksUnselectfdisk Used to check and repair filesystemUnselectUsed to print the superblock and block group informationUnselectUsed to adjust various filesystem parametersUnselectUsed to create an MBR partition on hard disksUnselectQuestion 9 of 50 10. The make command checks the local system to verify that the necessary components are availableTrueFalseQuestion 10 of 50 11. Which command forces yum to check the repositories and easily update installed software packages on a system?yum -uyum -updateyum update-allyum updateQuestion 11 of 50 12. How many output lines are printed by both tail and head command by default?5102015Question 12 of 50 13. Match the command with its usagegrep Used to display the last few lines UnselectPauses the display one line at a time.UnselectUsed to display the first few lines UnselectUsed to search text within a fileUnselectless Used to display the last few lines UnselectPauses the display one line at a time.UnselectUsed to display the first few lines UnselectUsed to search text within a fileUnselecthead Used to display the last few lines UnselectPauses the display one line at a time.UnselectUsed to display the first few lines UnselectUsed to search text within a fileUnselecttail Used to display the last few lines UnselectPauses the display one line at a time.UnselectUsed to display the first few lines UnselectUsed to search text within a fileUnselectQuestion 13 of 50 14. Which of the following commands would show default printer on a Linux system?lpqlpstatlpadminlprQuestion 14 of 50 15. Which protocol will allow connecting to Windows server from Linux machine?X11VNCRDPNone of the aboveQuestion 15 of 50 16. If you want to switch from text mode to GUI, which of the following runlevel will start GUI?Runlevel 3Runlevel 4Runlevel 5Runlevel 6Question 16 of 50 17. Which of the following is a performance analysis tool under Linux, which displays the resource occupancy of each process in real-time, similar to Windows task manager?topsarvmstatheadQuestion 17 of 50 18. Below command shows the UEFI or BIOS date and versiondmidecode –t biosTrueFalseQuestion 18 of 50 19. What command would display the last 20 lines of a text document named sys_log.txt?mode -n 20 sys_log.txthead -n 20 sys_log.txttail -n 20 sys_log.txtless -n 20 sys_log.txtQuestion 19 of 50 20. Which option to the curl command is used with FTP to cause a name-only listing?-o-l-f-sQuestion 20 of 50 21. Which of the following commands will list the libraries on which the command’s argument depends?lsliblddldconfigNone of the aboveQuestion 21 of 50 22. Which command is used to delete a user from the system and also delete both the home directory and mail spool files?userdel -rdeluserrmuseruserdel -RQuestion 22 of 50 23. Which of the following commands provide the below outputpasswdchageidlsidQuestion 23 of 50 24. Which command shows the username of your current effective user ID?wwhoamiwhoruidQuestion 24 of 50 25. Which character combination is used to append output to a file?>>|<<None of the aboveQuestion 25 of 50 26. Which of the following commands can be used to add special formatting to strings for printing?echoprintffprintprintQuestion 26 of 50 27. Which command provides the below output?hostnamehostnamectllshostmachine-typeQuestion 27 of 50 28. Which command is used to update the database of the locate command?locate -uupdatedb updatelocatelocatedbQuestion 28 of 50 29. Which protocol analyzer tool captures network traffic when troubleshooting connections?digwiresharknslookuptracerouteQuestion 29 of 50 30. Which command is used to erase the unwanted files created while attempting to compile the software?make cleanmake removemake deletemake undoQuestion 30 of 50 31. Which directory is used to store files and scripts that are executed at login?/etc/startup/etc/login.d/etc/profile.d/etc/binQuestion 31 of 50 32. A process that stops executing while waiting for user input is known as a zombie processTrueFalseQuestion 32 of 50 33. Which of the following commands can be used to display a list of all running processes?ps -eps -fps -cps -iQuestion 33 of 50 34. Which command can be used to search for and kill a hung process by its name?killpkillkillallkillhungQuestion 34 of 50 35. Which of the following is used by both Tunnel and Transport mode for encapsulation?IPsecVPNRSAAESQuestion 35 of 50 36. Which of the following is used by network devices as a means for centralized authentication?TACACS+SSHSSLFTPQuestion 36 of 50 37. Which of the following utilities uses SSH as transport protocol and uses TCP port 22?sslscpnslookupIPsecQuestion 37 of 50 38. Which of the following provides the below output?getfaclchageulimitulimit -aQuestion 38 of 50 39. Which security technique provides a guarantee of data integrity?HashingEncryptionAuthenticationAAAQuestion 39 of 50 40. Which of the following commands would prevent the firewall from being started by other applications?systemctl stop firewalldsystemctl mask firewalldsystemctl disable firewalldsystemctl prevent firewalldQuestion 40 of 50 41. Zones are used by firewalld to control traffic flowTrueFalseQuestion 41 of 50 42. Match the term with its descriptionNAT Uses a single IP to represent a private networkUnselectMethod to create a dual-homed networkUnselectMethod of having one network layered on top of another networkUnselectA markup language, used for data serializationUnselectYAML Uses a single IP to represent a private networkUnselectMethod to create a dual-homed networkUnselectMethod of having one network layered on top of another networkUnselectA markup language, used for data serializationUnselectBonding Uses a single IP to represent a private networkUnselectMethod to create a dual-homed networkUnselectMethod of having one network layered on top of another networkUnselectA markup language, used for data serializationUnselectOverlay network Uses a single IP to represent a private networkUnselectMethod to create a dual-homed networkUnselectMethod of having one network layered on top of another networkUnselectA markup language, used for data serializationUnselectQuestion 42 of 50 43. Which of the following statements are true about the commands 'mkswap' and 'fdisk'?mkswap is used to format a swap partitionfdisk is used to create a partition but not format itBoth mkswap and fidisk commands can be used to format the partitionAll of the aboveQuestion 43 of 50 44. Which of the following statements are true about hypervisors?Type 1 hypervisors have direct access to the system hardwareHypervisors isolate the host and guest machineA hosted hypervisor is sometimes called a Type 2All of the aboveQuestion 44 of 50 45. Which special character is used to escape characters such as a single quote in a bash script?\" 1 1.00 /""^Question 45 of 50 46. Which of the following commands can be used to download the projects source code from the remote repository?git pushgit clonegit pullgit getQuestion 46 of 50 47. Which control structure will process a task for a specified number of times?if/then/elsefor looploopbackcaseQuestion 47 of 50 48. SMTP is typically used for communication between nodes in an agentless orchestrationTrueFalseQuestion 48 of 50 49. Which of the following are considered as looping structures?while loopuntil loopfor loopAll of the aboveQuestion 49 of 50 50. Which command is used to add a variable to the current environment prior to running a bash script?getcreateexportaddQuestion 50 of 50 Loading...