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

XK0-005 Exam Dumps - CompTIA Linux+ Exam

Go to page:
Question # 97

A Linux administrator is troubleshooting connectivity issues and receives the following outputs:

python

Copy

$ ping comptia.org

ping: comptia.org: Temporary failure in name resolution

$ ping 104.18.17.29

64 bytes from 104.18.17.29: icmp_seq=1 ttl=63 time=31.4 ms

...

Which of the following describes the issue?

A.

A DNS has not been configured in the /etc/resolv.conf file

B.

A name server IP address has not been added in the /etc/protocols file

C.

The network interface is disabled

D.

A gateway IP address has not been configured on the network interface's configuration file

Full Access
Question # 98

Which of the following commands will display the operating system?

A.

uname -n

B.

uname -s

C.

uname -o

D.

uname -m

Full Access
Question # 99

A systems administrator needs to know the mail exchange (MX) record for the foo.com domain. Which of the following commands will accomplish this task?

A.

telnet mx foo.com

B.

dig mx foo.com

C.

nslookup mx foo.com

D.

host mx foo.com

Full Access
Question # 100

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?

A.

chgrp system accountname

B.

passwd –s accountname

C.

chmod -G system account name

D.

chage -E -1 accountname

Full Access
Question # 101

A Linux engineer has been notified about the possible deletion of logs from the file /opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries.

Which of the following commands would be BEST to use to accomplish this task?

A.

chattr +a /opt/app/logs

B.

chattr +d /opt/app/logs

C.

chattr +i /opt/app/logs

D.

chattr +c /opt/app/logs

Full Access
Question # 102

An administrator needs to make an application change via a script that must be run only in console mode. Which of the following best represents the sequence the administrator should execute to accomplish this task?

A.

systemct1 isolate multi-user.targetsh script.shsystemct1 isolate graphical.target

B.

systemct1 isolate graphical.targetsh script.shsystemct1 isolate multi-user.target

C.

sh script.shsystemct1 isolate multi-user.targetsystemct1 isolate graphical.target

D.

systemct1 isolate multi-user.targetsystemct1 isolate graphical.targetsh script.sh

Full Access
Question # 103

A file called testfile has both uppercase and lowercase letters:

$ cat testfile

ABCDEfgH

IJKLmnoPQ

abcdefgH

ijklLMNopq

A Linux administrator is tasked with converting testfile into all uppercase and writing it to a new file with the name uppercase. Which of the following commands will achieve

this task?

A.

tr '(A-Z}' '{a-z}' < testfile > uppercase

B.

echo testfile | tr "[Z-A]" "[z-a]" < testfile > uppercase

C.

cat testfile | tr '{z-a)' '{Z-A}' < testfile > uppercase

D.

tr '[a-z]' '[A-Z]' < testfile > uppercase

Full Access
Question # 104

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 —rotatejournalctl --vacuum-time=ls

B.

systemctl stop systemd-journaldsystemctl start systemd-journald

C.

rm -rf /var/log/journalsystemctl restart systemd-journald

D.

pkill -HUP systemd-journaldsystemctl restart systemd-journald

Full Access
Go to page: