Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

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

Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
Questions # 21:

Which of the following commands is used to ensure a service starts automatically at boot on a system using systemd?

Options:

A.

systemctl start httpd


B.

systemctl enable httpd


C.

systemctl status httpd


D.

systemctl reload httpd


Expert Solution
Questions # 22:

Which of the following does dmesg display?

Options:

A.

Incorrect login attempts


B.

" Session closed " messages


C.

Window manager warnings


D.

USB device connections


Expert Solution
Questions # 23:

A systems administrator wants to review the logs from an Apache 2 error.log file in real time and save the information to another file for later review. Which of the following commands should the administrator use?

Options:

A.

tail -f /var/log/apache2/error.log > logfile.txt


B.

tail -f /var/log/apache2/error.log | logfile.txt


C.

tail -f /var/log/apache2/error.log > > logfile.txt


D.

tail -f /var/log/apache2/error.log | tee logfile.txt


Expert Solution
Questions # 24:

Which of the following commands sets all the directories ' permissions recursively in the user ' s home directory and makes them accessible only to the user?

Options:

A.

find / -type f -exec chmod 777 {} ;


B.

find ~ -type d -exec chmod 700 {} ;


C.

find /home -type d -exec chmod 750 {} ;


D.

find $HOME -type d -exec chmod 755 {} ;


Expert Solution
Questions # 25:

A systems administrator is working on configuration changes and needs to replace a hostname in a specific file. Which of the following commands should the administrator use to complete this task?

Options:

A.

cut -d oldhostname /etc/configuration.file | vi newhostname


B.

sed -i ' s/oldhostname/newhostname/ ' /etc/configuration.file


C.

cat /etc/configuration.file | grep oldhostname > newhostname


D.

grep oldhostname /etc/configuration.file | awk ' {print $1 newhostname} '


Expert Solution
Questions # 26:

A systems administrator attempts to edit a file as root, but receives the following error:

Question # 26

Which of the following commands allows the administrator to edit the file?

Options:

A.

chown root /etc/resolv.conf


B.

chattr -i /etc/resolv.conf


C.

chmod 750 /etc/resolv.conf


D.

chgrp root /etc/resolv.conf


Expert Solution
Questions # 27:

After receiving a monitoring call, an administrator checks the Linux server for processes that have completed execution but have not been removed yet from the process table. Which of the following represents the process state for which the administrator should search?

Options:

A.

Z


B.

S


C.

D


D.

T


Expert Solution
Questions # 28:

An administrator needs to remove the directory /home/user1/data and all of its contents. Which of the following commands should the administrator use?

Options:

A.

rmdir -p /home/user1/data


B.

ln -d /home/user1/data


C.

rm -r /home/user1/data


D.

cut -d /home/user1/data


Expert Solution
Questions # 29:

Which of the following best describes a use case for playbooks in a Linux system?

Options:

A.

To provide a set of tasks and configurations to deploy an application


B.

To provide the instructions for implementing version control on a repository


C.

To provide the security information required for a container


D.

To provide the storage volume information required for a pod


Expert Solution
Questions # 30:

Which of the following most accurately describes a webhook?

Options:

A.

An authentication method for web-server communication


B.

An SNMP-based API for network device monitoring


C.

A means to transmit sensitive information between systems


D.

An HTTP-based callback function


Expert Solution
Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions