CompTIA Linux+ XK0-004 Exam 2

1. Which command provides the below output?

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?
3. The modules for the Linux OS kernel reside in the /lib/modules OS directory
4. Put the Linux high-level boot process steps in order
  • GRUB executes Kernel
  • Init executes Runlevel programs
  • BIOS executes MBR
  • Kernel executes Init
  • MBR executes GRUB
5. Which command is used to modify kernel parameters at runtime and also lists information about the parameters being passed to the kernel?
6. Which of the following commands provides below output?

7. Which directory contains the configuration files for network interfaces?
8. Mounted filesystems would not be re-mounted on reboot unless they have an entry in the which of the following file?
9. Match the command with its usage
fsck
Used to adjust various filesystem parameters

Unselect

Used to print the superblock and block group information

Unselect

Used to check and repair filesystem

Unselect

Used to create an MBR partition on hard disks

Unselect

tune2fs
Used to adjust various filesystem parameters

Unselect

Used to print the superblock and block group information

Unselect

Used to check and repair filesystem

Unselect

Used to create an MBR partition on hard disks

Unselect

dumpe2fs
Used to adjust various filesystem parameters

Unselect

Used to print the superblock and block group information

Unselect

Used to check and repair filesystem

Unselect

Used to create an MBR partition on hard disks

Unselect

fdisk
Used to adjust various filesystem parameters

Unselect

Used to print the superblock and block group information

Unselect

Used to check and repair filesystem

Unselect

Used to create an MBR partition on hard disks

Unselect

10. The make command checks the local system to verify that the necessary components are available
11. Which command forces yum to check the repositories and easily update installed software packages on a system?
12. How many output lines are printed by both tail and head command by default?
13. Match the command with its usage
grep
Pauses the display one line at a time.

Unselect

Used to search text within a file

Unselect

Used to display the first few lines

Unselect

Used to display the last few lines

Unselect

less
Pauses the display one line at a time.

Unselect

Used to search text within a file

Unselect

Used to display the first few lines

Unselect

Used to display the last few lines

Unselect

head
Pauses the display one line at a time.

Unselect

Used to search text within a file

Unselect

Used to display the first few lines

Unselect

Used to display the last few lines

Unselect

tail
Pauses the display one line at a time.

Unselect

Used to search text within a file

Unselect

Used to display the first few lines

Unselect

Used to display the last few lines

Unselect

14. Which of the following commands would show default printer on a Linux system?
15. Which protocol will allow connecting to Windows server from Linux machine?
16. If you want to switch from text mode to GUI, which of the following runlevel will start GUI?
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?
18. Below command shows the UEFI or BIOS date and version
dmidecode –t bios
19. What command would display the last 20 lines of a text document named sys_log.txt?
20. Which option to the curl command is used with FTP to cause a name-only listing?
21. Which of the following commands will list the libraries on which the command’s argument depends?
22. Which command is used to delete a user from the system and also delete both the home directory and mail spool files?
23. Which of the following commands provide the below output

24. Which command shows the username of your current effective user ID?
25. Which character combination is used to append output to a file?
26. Which of the following commands can be used to add special formatting to strings for printing?
27. Which command provides the below output?

28. Which command is used to update the database of the locate command?
29. Which protocol analyzer tool captures network traffic when troubleshooting connections?
30. Which command is used to erase the unwanted files created while attempting to compile the software?
31. Which directory is used to store files and scripts that are executed at login?
32. A process that stops executing while waiting for user input is known as a zombie process
33. Which of the following commands can be used to display a list of all running processes?
34. Which command can be used to search for and kill a hung process by its name?
35. Which of the following is used by both Tunnel and Transport mode for encapsulation?
36. Which of the following is used by network devices as a means for centralized authentication?
37. Which of the following utilities uses SSH as transport protocol and uses TCP port 22?
38. Which of the following provides the below output?

39. Which security technique provides a guarantee of data integrity?
40. Which of the following commands would prevent the firewall from being started by other applications?
41. Zones are used by firewalld to control traffic flow
42. Match the term with its description
NAT
Method of having one network layered on top of another network

Unselect

Method to create a dual-homed network

Unselect

A markup language, used for data serialization

Unselect

Uses a single IP to represent a private network

Unselect

YAML
Method of having one network layered on top of another network

Unselect

Method to create a dual-homed network

Unselect

A markup language, used for data serialization

Unselect

Uses a single IP to represent a private network

Unselect

Bonding
Method of having one network layered on top of another network

Unselect

Method to create a dual-homed network

Unselect

A markup language, used for data serialization

Unselect

Uses a single IP to represent a private network

Unselect

Overlay network
Method of having one network layered on top of another network

Unselect

Method to create a dual-homed network

Unselect

A markup language, used for data serialization

Unselect

Uses a single IP to represent a private network

Unselect

43. Which of the following statements are true about the commands 'mkswap' and 'fdisk'?
44. Which of the following statements are true about hypervisors?
45. Which special character is used to escape characters such as a single quote in a bash script?
46. Which of the following commands can be used to download the projects source code from the remote repository?
47. Which control structure will process a task for a specified number of times?
48. SMTP is typically used for communication between nodes in an agentless orchestration
49. Which of the following are considered as looping structures?
50. Which command is used to add a variable to the current environment prior to running a bash script?

 

Leave a comment