CompTIA Linux+ XK0-006 Practice Test Questions and Exam Dumps Part 19: Q361–Q380

View Full CompTIA XK0-006 Exam Dumps and Practice Test Dumps.

 

Question 361

Which command can show the systemd boot process and identify services that took significant time during startup?

  1. systemctl boot-time
  2. systemd-analyze
  3. bootcheck
  4. systemctl startup

Correct Answer: 2

Explanation

The systemd-analyze command provides information about system startup performance. It can show how long the kernel, initrd, and userspace startup took. This is useful when a Linux system boots slowly and an administrator needs to identify where time is being spent. Additional systemd-analyze options can provide more detailed information about service startup times and dependencies. Administrators can use this information to investigate slow services without randomly disabling system components.

Question 362

Which command shows the order and time taken by systemd units during boot?

  1. systemd-analyze blame
  2. systemctl list-times
  3. systemd boot-list
  4. journalctl –timing

Correct Answer: 1

Explanation

systemd-analyze blame lists systemd units according to the time they took to start. It is useful for finding services that contribute significantly to slow boot times. A service appearing near the top is not automatically the root cause, because some services may wait for dependencies or hardware. Administrators should investigate the service configuration and dependencies before disabling anything. This command is particularly useful when comparing boot performance before and after configuration changes.

Question 363

Which command displays the dependency chain that contributed to system startup time?

  1. systemctl dependency-time
  2. systemd-analyze critical-chain
  3. systemctl boot-chain
  4. journalctl –critical

Correct Answer: 2

Explanation

systemd-analyze critical-chain displays a chain of units involved in the critical path of system startup. It helps administrators understand which dependencies delayed the boot process. Unlike simply looking at the longest individual service startup time, the critical chain shows how services depend on one another. This makes it useful when a system appears slow even though no single service seems extremely slow. Administrators can then investigate the relevant dependency or service configuration.

Question 364

Which file is commonly used to define the initial RAM filesystem image used during Linux boot?

  1. /etc/initramfs.conf
  2. /boot/initramfs
  3. /var/initrd.conf
  4. /etc/kernel.img

Correct Answer: 2

Explanation

The initial RAM filesystem, commonly called initramfs or initrd, contains files and tools needed early in the Linux boot process. It can provide drivers and utilities required to access the root filesystem before the normal filesystem is available. The actual image is commonly stored under /boot, often with a kernel-specific filename. If required drivers or storage configuration are missing from the initramfs, the system may fail to find or mount the root filesystem during startup.

Question 365

Which Linux boot component normally loads the kernel and can provide a menu for selecting operating systems or kernel versions?

  1. GRUB
  2. cron
  3. systemd-journald
  4. NetworkManager

Correct Answer: 1

Explanation

GRUB is a bootloader commonly used on Linux systems. It loads the Linux kernel and can also load the initial RAM filesystem. GRUB may provide a menu allowing administrators to select different installed kernels or operating systems. This can be useful when a newly installed kernel has a problem and an older kernel needs to be selected. Bootloader configuration should be changed carefully because incorrect settings can prevent the system from booting normally.

Question 366

Which command can show network interface and IP address information using NetworkManager?

  1. nmcli device status
  2. nmcli interface ip
  3. networkctl address
  4. netinfo –nm

Correct Answer: 1

Explanation

nmcli device status displays NetworkManager-managed network devices and their current state. It can show whether an interface is connected, disconnected, or unavailable and can identify the connection associated with the device. This is useful when troubleshooting network problems on systems using NetworkManager. Administrators can then use other nmcli commands to inspect connection profiles, IP settings, DNS configuration, and routes. Checking the device state is a good starting point before investigating higher-level network problems.

Question 367

Which nmcli command can display saved NetworkManager connection profiles?

  1. nmcli profile list
  2. nmcli connection show
  3. nmcli saved-networks
  4. nmcli network profiles

Correct Answer: 2

Explanation

nmcli connection show displays NetworkManager connection profiles known to the system. These profiles contain settings such as interface association, IP configuration, DNS information, and other network options. This is useful when a network interface appears connected but has incorrect settings. Administrators can inspect a profile before making changes and can modify specific properties with nmcli connection modify. Reviewing the saved profile helps distinguish configuration problems from physical or driver-related network problems.

Question 368

Which network setting determines the maximum packet size that an interface can normally transmit without fragmentation?

  1. TTL
  2. MTU
  3. MAC
  4. ARP

Correct Answer: 2

Explanation

MTU, or Maximum Transmission Unit, defines the largest packet size that can normally be transmitted over a network interface without fragmentation at that layer. A mismatch in MTU settings can cause unusual connectivity problems, especially across VPNs, tunnels, or networks with smaller packet limits. If some websites or services work while others fail, MTU can be one possible cause. Administrators can inspect interface configuration and test packet sizes when investigating suspected MTU problems.

Question 369

Which command can display the kernel’s current ARP or neighbor table?

  1. ip neigh
  2. ip arp-table
  3. arp-show
  4. net neighbor-list

Correct Answer: 1

Explanation

The ip neigh command displays the kernel’s neighbor table. For IPv4, this includes information traditionally associated with ARP, such as mappings between IP addresses and MAC addresses. It can also display IPv6 neighbor information. This command is useful when troubleshooting local network communication where the system may have incorrect, incomplete, or unreachable neighbor information. Administrators can use the output together with interface status, routing information, and packet tests to identify local network problems.

Question 370

Which technology allows multiple network interfaces to be combined for redundancy or increased throughput?

  1. VLAN
  2. Bonding
  3. NAT
  4. DNS

Correct Answer: 2

Explanation

Network bonding combines multiple physical network interfaces into a logical interface. Depending on the selected bonding mode and network configuration, bonding can provide redundancy, load distribution, or increased throughput. It is commonly used on servers where network availability is important. Proper switch configuration may also be required for some bonding modes. When troubleshooting bonding, administrators should check the physical interfaces, bonding status, switch configuration, and network manager configuration rather than looking only at the logical interface.

Question 371

Which Linux technology is commonly used to create encrypted block-device storage using LUKS?

  1. cryptsetup
  2. encryptfs
  3. luksctl
  4. blockcrypt

Correct Answer: 1

Explanation

cryptsetup is commonly used to manage encrypted block devices using technologies such as LUKS. LUKS provides a standard format for encrypted Linux storage and can protect data if the physical storage device is removed from the system. Encryption does not replace normal filesystem permissions because users still need appropriate access after the encrypted device is unlocked. Administrators should also protect encryption keys or passphrases carefully because losing the required credentials may make encrypted data inaccessible.

Question 372

Which command can display information about a LUKS-encrypted device?

  1. cryptsetup luksDump
  2. luksinfo
  3. cryptshow
  4. lscrypt

Correct Answer: 1

Explanation

cryptsetup luksDump displays metadata about a LUKS device. The output can provide information about the LUKS format, version, cipher information, and key slots. It is useful when verifying the configuration of an encrypted storage device. Administrators should be careful when using commands that modify LUKS metadata because incorrect changes can make encrypted data inaccessible. luksDump is primarily an inspection command and does not itself decrypt the contents of the filesystem.

Question 373

Which command can move physical extents from one LVM physical volume to another?

  1. lvshift
  2. pvmove
  3. vgmove
  4. lvm-transfer

Correct Answer: 2

Explanation

The pvmove command moves allocated physical extents from one LVM physical volume to another. It is useful when an administrator needs to remove a disk from a volume group while preserving the logical volume data. Before using it, the destination physical volume must have enough free space. Administrators should verify the volume group and physical volume status first. Storage operations should also be monitored because moving large amounts of data can take significant time and generate substantial disk I/O.

Question 374

Which filesystem feature can restrict how much disk space a particular user or group can consume?

  1. Filesystem quotas
  2. File ACLs
  3. Sticky bit
  4. Symbolic links

Correct Answer: 1

Explanation

Filesystem quotas can limit the amount of storage or number of files that users or groups are allowed to consume. Quotas are useful on shared systems where one user should not be able to fill an entire filesystem. They can usually be configured with separate limits for users and groups. Administrators should monitor quota usage and communicate limits clearly. Quotas are different from normal file permissions because permissions control access, while quotas control resource consumption.

Question 375

Which Linux feature allows a process to run with a higher or lower CPU scheduling priority?

  1. nice
  2. priorityctl
  3. cpurank
  4. scheduser

Correct Answer: 1

Explanation

The nice value influences a process’s CPU scheduling priority. A process with a higher nice value generally receives less CPU scheduling preference, while a lower value gives it more preference. Administrators can use nice values to reduce the impact of CPU-heavy background workloads. Changing priority should be done carefully because giving one process more CPU preference can reduce resources available to other workloads. Monitoring CPU usage after the change helps determine whether the adjustment improved system behavior.

Question 376

Which command can change the scheduling priority of an already running process?

  1. nice -p
  2. renice
  3. priority
  4. schednice

Correct Answer: 2

Explanation

The renice command changes the nice value of an already running process. This can be useful when a CPU-intensive process is affecting other workloads and its scheduling priority needs adjustment. Depending on the direction of the priority change, additional privileges may be required. Administrators should identify the correct process ID before changing its priority. Renicing a process changes scheduling preference; it does not directly reduce the amount of CPU work the application performs.

Question 377

Which file is commonly used to configure persistent mount options for filesystems at system startup?

  1. /etc/mounts
  2. /etc/filesystems
  3. /etc/fstab
  4. /etc/storage.conf

Correct Answer: 3

Explanation

The /etc/fstab file contains filesystem entries that can be mounted automatically during system startup. Each entry can specify the device or filesystem identifier, mount point, filesystem type, options, and other values. Administrators should test changes carefully because an incorrect fstab entry can cause boot or mount problems. Using stable identifiers such as UUIDs can help prevent problems when device names change. After editing the file, administrators should verify the configuration before rebooting.

Question 378

Which command can test /etc/fstab entries by attempting to mount filesystems without requiring a full reboot?

  1. mount -a
  2. fstab –test
  3. mount –fstab-check
  4. filesystem -a

Correct Answer: 1

Explanation

The mount -a command attempts to mount filesystems listed in /etc/fstab that are not already mounted and do not have options that prevent automatic mounting. It is commonly used after editing fstab to detect configuration errors before rebooting. Administrators should carefully review any error messages and verify that expected filesystems are mounted. Testing the configuration before rebooting is safer than discovering an invalid entry during the next system startup.

Question 379

Which command can show where a filesystem is currently mounted and the filesystem type?

  1. findmnt
  2. mountpoint-info
  3. fstab-show
  4. fswhere

Correct Answer: 1

Explanation

The findmnt command displays mounted filesystems and provides useful information such as the source device, target mount point, and filesystem type. It can be helpful when troubleshooting storage problems because it provides a structured view of the current mount configuration. Administrators can use it to confirm whether a filesystem is mounted where expected and whether it uses the correct filesystem type and options. This can be especially useful after changes to storage or /etc/fstab.

Question 380

Which command can check whether a filesystem is mounted as read-only or read-write?

  1. mountstate
  2. findmnt -o TARGET,OPTIONS
  3. fscheck –mode
  4. rwstatus

Correct Answer: 2

Explanation

findmnt -o TARGET,OPTIONS can display mount points together with their active mount options. The options can reveal whether a filesystem is mounted with ro for read-only or rw for read-write access. This is useful when applications report that they cannot write to a filesystem. A filesystem may become read-only because of intentional configuration, filesystem errors, or storage problems. Administrators should investigate the reason for a read-only state instead of simply forcing it back to read-write.