New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

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

Viewing page 9 out of 15 pages
Viewing questions 81-90 out of questions
Questions # 81:

Which of the following commands will display the operating system?

Options:

A.

uname -n


B.

uname -s


C.

uname -o


D.

uname -m


Expert Solution
Questions # 82:

A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily. Which of the following is MOST likely causing the issue?

Options:

A.

The checkdiskspace.service is not running.


B.

The checkdiskspace.service needs to be enabled.


C.

The OnCalendar schedule is incorrect in the timer definition.


D.

The system-daemon services need to be reloaded.


Expert Solution
Questions # 83:

A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following:

Question # 83

Which of the following commands should replace the string?

Options:

A.

if [ -f "$filename" ]; then


B.

if [ -d "$filename" ]; then


C.

if [ -f "$filename" ] then


D.

if [ -f "$filename" ]; while


Expert Solution
Questions # 84:

A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task:

Which of the following technologies is the administrator using?

Options:

A.

Ansible


B.

Puppet


C.

Chef


D.

Terraform


Expert Solution
Questions # 85:

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 # 86:

A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr—r--. ?

Options:

A.

chmod 755 filename.log


B.

chmod 640 filename.log


C.

chmod 740 filename.log


D.

chmod 744 filename.log


Expert Solution
Questions # 87:

A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote. Which of the following commands will achieve the desired effect?

Options:

A.

scp -p /data remote:/backup/data


B.

ssh -i /remote:/backup/ /data


C.

rsync -a /data remote:/backup/


D.

cp -r /data /remote/backup/


Expert Solution
Questions # 88:

A systems administrator configured firewall rules using firewalld. However, after the system is rebooted, the firewall rules are not present:

The systems administrator makes additional checks:

Which of the following is the reason the firewall rules are not active?

Options:

A.

iptables is conflicting with firewalld.


B.

The wrong system target is activated.


C.

FIREWALL_ARGS has no value assigned.


D.

The firewalld service is not enabled.


Expert Solution
Questions # 89:

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 # 90:

A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?

Options:

A.

sudo fdisk /dev/sda


B.

sudo fdisk -s /dev/sda


C.

sudo fdisk -l


D.

sudo fdisk -h


Expert Solution
Viewing page 9 out of 15 pages
Viewing questions 81-90 out of questions