A systems administrator needs to enable routing of IP packets between network interfaces. Which of the following kernel parameters should the administrator change?
Answer(s): D
The net.ipv4.ip_forward kernel parameter controls whether the Linux kernel can forward IP packets between network interfaces, enabling routing functionality when set to 1.
A Linux user frequently tests shell scripts located in the /home/user/scripts directory. Which of the following commands allows the user to run the program by invoking only the script name?
Answer(s): C
By appending /home/user/scripts to the PATH environment variable, the user can execute scripts from that directory by simply typing the script name without specifying the full path.
A systems administrator needs to check the statuses of all the services on a Linux server. Which of the following commands accomplishes this task?
The systemctl list-units --type=service command displays all loaded service units and their statuses (running, exited, failed, etc.), allowing the administrator to check the state of all services on the server.
Which of the following cryptographic functions ensures a hard drive is encrypted when not in use?
Answer(s): B
LUKS (Linux Unified Key Setup) provides full-disk encryption, ensuring that the data on a hard drive is protected and unreadable when the system is powered off or the drive is not in use.
Which of the following most accurately describes a webhook?
A webhook is an HTTP-based callback that allows one system to send real-time data or notifications to another system when an event occurs.
An administrator attempts to install updates on a Linux system but receives error messages regarding a specific repository. Which of the following commands should the administrator use to verify that the repository is installed and enabled?
The yum repolist all command lists all configured repositories along with their status (enabled or disabled), allowing the administrator to verify if the problematic repository is installed and active.
Which of the following is the main reason for setting up password expiry policies?
Password expiry policies ensure that even if a password has been compromised, its period of validity is limited, reducing the risk of long-term unauthorized access.
A Linux administrator is making changes to local files that are part of a Git repository. The administrator needs to retrieve changes from the remote Git repository. Which of the following commands should the administrator use to save the local modifications for later review?
Answer(s): A
The git stash command temporarily saves local modifications without committing them, allowing the administrator to safely run git pull or git fetch later and then reapply the saved changes.
Post your Comments and Discuss CompTIA XK0-006 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the XK0-006 content, but please register or login to continue.