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

CompTIA XK0-006 - CompTIA Linux+ V8 Exam

Page: 5 / 5
Total 149 questions

Which of the following commands can be used to display current CPU utilization in real time on a Linux system?

A.

uptime

B.

top

C.

df

D.

lsblk

A systems administrator needs to restore a backup to the /usr/app/data directory. Which of the following commands should the administrator use for this task?

A.

tar -xvzf /tmp/backup.tar.gz -C /usr/app/data

B.

tar -xvf /tmp/backup.tar.gz /usr/app/data

C.

tar -xvzf /usr/app/data /tmp/backup.tar.gz

D.

tar -xvzf /tmp/backup.tar.gz > /usr/app/data

A Linux administrator updates the DNS record for the company using:

cat /etc/bind/db.abc.com

The revised partial zone file is as follows:

ns1 IN A 192.168.40.251

ns2 IN A 192.168.40.252

www IN A 192.168.30.30

When the administrator attempts to resolve www.abc.com to its IP address, the domain name still points to its old IP mapping:

nslookup www.abc.com

Server: 192.168.40.251

Address: 192.168.40.251#53

Non-authoritative answer:

Name: www.abc.com

Address: 199.168.20.81

Which of the following should the administrator execute to retrieve the updated IP mapping?

A.

systemd-resolve query www.abc.com

B.

systemd-resolve status

C.

service nslcd reload

D.

resolvectl flush-caches

A systems administrator receives reports about connection issues to a secure web server. Given the following firewall and web server outputs:

Firewall output:

Status: active

To Action From

443/tcp DENY Anywhere

443/tcp (v6) DENY Anywhere (v6)

Web server output:

tcp LISTEN 0 4096 *:443 :

Which of the following commands best resolves this issue?

A.

ufw disable

B.

ufw allow 80/tcp

C.

ufw delete deny https/tcp

D.

ufw allow 4096/tcp