Linux+ Practice Exam

Back to exams page

Free CompTIA Linux+ practice exam.

Take our CompTIA Linux+ course here.

Read our labs book on Amazon.

comptia Linux+

1. Which command provides the below output?

lsmod

Question 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?

Question 2 of 50

3. The modules for the Linux OS kernel reside in the /lib/modules OS directory

Question 3 of 50

4. Put the Linux high-level boot process steps in order
  • GRUB executes Kernel
  • MBR executes GRUB
  • Init executes Runlevel programs
  • BIOS executes MBR
  • Kernel executes Init

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?

Question 5 of 50

6. Which of the following commands provides below output?

route

Question 6 of 50

7. Which directory contains the configuration files for network interfaces?

Question 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?

Question 8 of 50

9. Match the command with its usage
fsck
Used to create an MBR partition on hard disks

Unselect

Used to check and repair filesystem

Unselect

Used to print the superblock and block group information

Unselect

Used to adjust various filesystem parameters

Unselect

tune2fs
Used to create an MBR partition on hard disks

Unselect

Used to check and repair filesystem

Unselect

Used to print the superblock and block group information

Unselect

Used to adjust various filesystem parameters

Unselect

dumpe2fs
Used to create an MBR partition on hard disks

Unselect

Used to check and repair filesystem

Unselect

Used to print the superblock and block group information

Unselect

Used to adjust various filesystem parameters

Unselect

fdisk
Used to create an MBR partition on hard disks

Unselect

Used to check and repair filesystem

Unselect

Used to print the superblock and block group information

Unselect

Used to adjust various filesystem parameters

Unselect

Question 9 of 50

10. The make command checks the local system to verify that the necessary components are available

Question 10 of 50

11. Which command forces yum to check the repositories and easily update installed software packages on a system?

Question 11 of 50

12. How many output lines are printed by both tail and head command by default?

Question 12 of 50

13. Match the command with its usage
grep
Used to display the first few lines

Unselect

Pauses the display one line at a time.

Unselect

Used to display the last few lines

Unselect

Used to search text within a file

Unselect

less
Used to display the first few lines

Unselect

Pauses the display one line at a time.

Unselect

Used to display the last few lines

Unselect

Used to search text within a file

Unselect

head
Used to display the first few lines

Unselect

Pauses the display one line at a time.

Unselect

Used to display the last few lines

Unselect

Used to search text within a file

Unselect

tail
Used to display the first few lines

Unselect

Pauses the display one line at a time.

Unselect

Used to display the last few lines

Unselect

Used to search text within a file

Unselect

Question 13 of 50

14. Which of the following commands would show default printer on a Linux system?

Question 14 of 50

15. Which protocol will allow connecting to Windows server from Linux machine?

Question 15 of 50

16. If you want to switch from text mode to GUI, which of the following runlevel will start GUI?

Question 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?

Question 17 of 50

18. Below command shows the UEFI or BIOS date and version
dmidecode –t bios

Question 18 of 50

19. What command would display the last 20 lines of a text document named sys_log.txt?

Question 19 of 50

20. Which option to the curl command is used with FTP to cause a name-only listing?

Question 20 of 50

21. Which of the following commands will list the libraries on which the command’s argument depends?

Question 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?

Question 22 of 50

23. Which of the following commands provide the below output

id

Question 23 of 50

24. Which command shows the username of your current effective user ID?

Question 24 of 50

25. Which character combination is used to append output to a file?

Question 25 of 50

26. Which of the following commands can be used to add special formatting to strings for printing?

Question 26 of 50

27. Which command provides the below output?

homectl

Question 27 of 50

28. Which command is used to update the database of the locate command?

Question 28 of 50

29. Which protocol analyzer tool captures network traffic when troubleshooting connections?

Question 29 of 50

30. Which command is used to erase the unwanted files created while attempting to compile the software?

Question 30 of 50

31. Which directory is used to store files and scripts that are executed at login?

Question 31 of 50

32. A process that stops executing while waiting for user input is known as a zombie process

Question 32 of 50

33. Which of the following commands can be used to display a list of all running processes?

Question 33 of 50

34. Which command can be used to search for and kill a hung process by its name?

Question 34 of 50

35. Which of the following is used by both Tunnel and Transport mode for encapsulation?

Question 35 of 50

36. Which of the following is used by network devices as a means for centralized authentication?

Question 36 of 50

37. Which of the following utilities uses SSH as transport protocol and uses TCP port 22?

Question 37 of 50

38. Which of the following provides the below output?

ulimit

Question 38 of 50

39. Which security technique provides a guarantee of data integrity?

Question 39 of 50

40. Which of the following commands would prevent the firewall from being started by other applications?

Question 40 of 50

41. Zones are used by firewalld to control traffic flow

Question 41 of 50

42. Match the term with its description
NAT
Uses a single IP to represent a private network

Unselect

Method to create a dual-homed network

Unselect

A markup language, used for data serialization

Unselect

Method of having one network layered on top of another network

Unselect

YAML
Uses a single IP to represent a private network

Unselect

Method to create a dual-homed network

Unselect

A markup language, used for data serialization

Unselect

Method of having one network layered on top of another network

Unselect

Bonding
Uses a single IP to represent a private network

Unselect

Method to create a dual-homed network

Unselect

A markup language, used for data serialization

Unselect

Method of having one network layered on top of another network

Unselect

Overlay network
Uses a single IP to represent a private network

Unselect

Method to create a dual-homed network

Unselect

A markup language, used for data serialization

Unselect

Method of having one network layered on top of another network

Unselect

Question 42 of 50

43. Which of the following statements are true about the commands 'mkswap' and 'fdisk'?

Question 43 of 50

44. Which of the following statements are true about hypervisors?

Question 44 of 50

45. Which special character is used to escape characters such as a single quote in a bash script?

Question 45 of 50

46. Which of the following commands can be used to download the projects source code from the remote repository?

Question 46 of 50

47. Which control structure will process a task for a specified number of times?

Question 47 of 50

48. SMTP is typically used for communication between nodes in an agentless orchestration

Question 48 of 50

49. Which of the following are considered as looping structures?

Question 49 of 50

50. Which command is used to add a variable to the current environment prior to running a bash script?

Question 50 of 50


40+ IT Certifications · One Membership

Stop Watching. Start Doing.

Unlimited IT certification training with videos, labs, PBQs, live Cisco racks and practice exams — everything you need to pass and actually know your stuff.

  • Video theory lessons
  • Follow-along labs
  • Performance-based questions
  • Practice exams
  • Live Cisco rack access
  • 40+ certs including CompTIA, Cisco, Linux, Microsoft, AWS, CEH
Join Now — From $29

Cancel anytime. No contracts. Instant access on signup.

content-filler