Exam XK0-005: CompTIA Linux+
Exam Number: XK0-005 | Length of test: 90 mins |
Exam Name: CompTIA Linux+ | Number of questions in the actual exam: 55-90 |
Format: PDF, VPLUS | Passing Score: 6++/900 |
Total Questions: 379 $30 Premium PDF file 2 months updates Last updated: December-2024 |
Total Questions: 379 FREE Premium VPLUS file Last updated: December-2024 |
Download practice test questions
Title | Size | Hits | Download |
---|---|---|---|
CompTIA.XK0-005.vDec-2024.by.Tonodo.207q | 2.83 MB | 7 | Download |
CompTIA.XK0-005.vDec-2024.by.Tonodo.207q | 4.52 MB | 5 | Download |
CompTIA.XK0-005.vMar-2024.by.Toan.94q | 1.46 MB | 72 | Download |
Some new sample questions:
Question:
A DevOps engineer wants to work on a snapshot of the infrastructure as code configuration. Which of the following commands should the engineer use to accomplish this task?
A. git pull
B. git push
C. git branch
D. git tag
Question:
Users report that they cannot access some files located in the /opt/finapp directory after a power outage caused an unexpected server restart. A Linux administrator examines the following filesystem details and system logs:
# mount | grep finapp
/dev/mapper/rhel-opt_finapp on /opt/finapp type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
sda1 8:1 0 1G 0 part /boot
sda2 8:2 0 930.5G 0 part
rhel-root 253:0 0 30.5G 0 lvm /
rhel-opt_finapp 253:1 0 900G 0 lvm /opt/finapp
# grep opt_finapp /var/log/messages
XFS (opt_finapp): Corruption detected in inode 3645, extent tree
Which of the following commands should the administrator run in an attempt to fix the filesystem?
A. fdisk /dev/mapper/rhel-opt_finapp
B. xfs_repair /dev/mapper/rhel-opt_finapp
C. lvcreate -L900G -n opt_finapp rhel
D. fsck.ext4 /dev/mapper/rhel-opt_finapp
Question:
The journald entries have filled a Linux machine’s /var volume. Which of the following is the best command for a systems administrator to use to free up the disk space occupied by these entries?
A. journalctl –rotate journalctl –vacuum-time=1s
B. systemctl stop systemd-journald systemctl start systemd-journald
C. rm -rf /var/log/journal systemctl restart systemd-journald
D. pkill -HUP systemd-journald systemctl restart systemd-journald
Question:
A Linux systems administrator needs to add additional code to code that resides within a repository without changing the original code. Once completed, the additional code will be merged into the main branch. Which of the following commands should the administrator use first?
A. git push
B. git rebase
C. git tag
D. git clone
………..
Some new questions:
Q
A security team discovers that a web server has been running with elevated privileges and identifies it as a security violation. Which of the following items needs to be added to the webserver.service file to remediate the issue?
A. In the [Service] section of the webserver.service file, add User=comptia.
B. In the [Unit] section of the webserver.service file, add AllowIsolate=true.
C. In the [Install] section of the webserver.service file, add WantedBy=single.target.
D. Add After=network.target to the [Install] section of the webserver.service file.
Q
A systems administrator is tasked with configuring a repository on an RPM-based Linux system. Which of the following need to be reviewed and modified? (Select two).
A. /etc/yum.conf
B. /etc/apt/sources.list.d
C. /etc/pam.d
D. /etc/apt.conf
E. /etc/yum.repos.d
F. /etc/ssh/ssh_config
Q
A Linux administrator created a virtual clone of a physical server and would like to remove any existing entries related to SSH keys from outside entities on the virtual clone. Which of the following files should the administrator remove? (Select two).
A. ~/.ssh/authorized_keys
B. ~/.ssh/known_hosts
C. /etc/ssh/ssh_config
D. ~/.ssh/config
E. /etc/ssh/sshd_config
F. /etc/ssh/ssh_host_rsa_key.pub
Q
A Linux systems administrator is trying to execute a particular shell script on a server. The administrator reviews the following outputs:
shell
$ ./startup.sh
bash: ./startup.sh: Permission denied
$ ls -l startup.sh
-rw-rw-r– 1 companyabc companyabc 18 October 15:35 startup.sh
Which of the following commands should the administrator use to allow the script to run?
A. chown root startup.sh
B. chmod 750 startup.sh
C. chmod -x startup.sh
D. chmod 400 startup.sh
………….