Pass the CompTIA Linux+ XK0-005 Questions and answers with CertsForce

Viewing page 4 out of 15 pages
Viewing questions 31-40 out of questions
Questions # 31:

A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?

Options:

A.

chmod 4744 dev_team.txt


B.

chmod 744 --setuid dev_team.txt


C.

chmod -c 744 dev_team.txt


D.

chmod -v 4744 --suid dev_team.txt


Expert Solution
Questions # 32:

After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?

Options:

A.

chgrp system accountname


B.

passwd –s accountname


C.

chmod -G system account name


D.

chage -E -1 accountname


Expert Solution
Questions # 33:

An administrator attempts to rename a file on a server but receives the following error.

The administrator then runs a few commands and obtains the following output:

Question # 33

Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?

Options:

A.

chgrp reet files


B.

chacl -R 644 files


C.

chown users files


D.

chmod -t files


Expert Solution
Questions # 34:

A Linux administrator is troubleshooting SSH connection issues from one of the workstations.

When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:

The administrator reviews the information below:

Which of the following is causing the connectivity issue?

Options:

A.

The workstation has the wrong IP settings.


B.

The sshd service is disabled.


C.

The server’s firewall is preventing connections from being made.


D.

The server has an incorrect default gateway configuration.


Expert Solution
Questions # 35:

A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job. Given the following:

The Linux administrator attempts to start the timer service but receives the following error message:

Question # 35

Which of the following is MOST likely the reason the timer will not start?

Options:

A.

The checkdiskspace.timer unit should be enabled via systemct1.


B.

The timers.target should be reloaded to get the new configuration.


C.

The checkdiskspace.timer should be configured to allow manual starts.


D.

The checkdiskspace.timer should be started using the sudo command.


Expert Solution
Questions # 36:

A Linux system is getting an error indicating the root filesystem is full. Which of the following commands should be used by the systems administrator to resolve this issue? (Choose three.)

Options:

A.

df -h /


B.

fdisk -1 /dev/sdb


C.

growpart /dev/mapper/rootvg-rootlv


D.

pvcreate /dev/sdb


E.

lvresize –L +10G -r /dev/mapper/rootvg-rootlv


F.

lsblk /dev/sda


G.

parted -l /dev/mapper/rootvg-rootlv


Expert Solution
Questions # 37:

A Linux administrator is trying to remove the ACL from the file /home/user/data. txt but receives the following error message:

Given the following analysis:

Which of the following is causing the error message?

Options:

A.

The administrator is not using a highly privileged account.


B.

The filesystem is mounted with the wrong options.


C.

SELinux file context is denying the ACL changes.


D.

File attributes are preventing file modification.


Expert Solution
Questions # 38:

Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ago. Which of the following commands will accomplish this task?

Options:

A.

find /var/log -type d -mtime +180 -print -exec rm {} \;


B.

find /var/log -type f -modified +180 -rm


C.

find /var/log -type f -mtime +180 -exec rm {} \


D.

find /var/log -type c -atime +180 –remove


Expert Solution
Questions # 39:

A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git. Which of the following commands will achieve this goal?

Options:

A.

git clone https://git.company.com/admin/project.git


B.

git checkout https://git.company.com/admin/project.git


C.

git pull https://git.company.com/admin/project.git


D.

git branch https://git.company.com/admin/project.git


Expert Solution
Questions # 40:

Which of the following is a function of a bootloader?

Options:

A.

It initializes all the devices that are required to load the OS.


B.

It mounts the root filesystem that is required to load the OS.


C.

It helps to load the different kernels to initiate the OS startup process.


D.

It triggers the start of all the system services.


Expert Solution
Viewing page 4 out of 15 pages
Viewing questions 31-40 out of questions