Summer Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

CompTIA XK0-004 CompTIA Linux+ Certification Exam Exam Practice Test

Demo: 72 questions
Total 483 questions

CompTIA Linux+ Certification Exam Questions and Answers

Question 1

A Linux administrator configured several network interfaces to be used for backup. The administrator entered the following commands:

After the last command, a new interlace appeared as connected and worked until the Linux system was rebooted. After the reboot, the Interface did not connect properly. Which of the following configuration changes are needed to ensure that the Interface connects automatically?

Options:

A.

The backup Interface should be reconfigured with a / 2 4 subnet mask.

B.

autoconnect yes should be added to the interface configuration.

C.

mcli conn up backup should be executed

D.

ip link set eth1 should be performed.

Question 2

An administrator wants to run a script on the second Monday of every month. The script should be executed at 7:00 a.m. and 1:00 p.m. Which of the following entries to the crontab will accomplish this?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 3

Which of the following techniques would BEST ensure the setup and desired state of a server are consistently maintained?

Options:

A.

Configuration management

B.

Network automation

C.

Test automation

D.

Change control management

Question 4

A Linux administrator is confirming information on a system. The administrator issues a series of commands and gets the following output:

Which of the following did the administrator issue?

Options:

A.

Ismod | sort

B.

dmesg | more

C.

insmod video > dev/ttyS0

D.

modprobe video ismod

Question 5

A Linux administrator created a new log file in /var/log/newlog to monitor a newly installed application. The administrator is now configuring paramters of the file so it will be rotated on a weekly basis or when it becomes larger than 1MB in...

should exist in the /var/log directory. Which of the following should be added to he /etc/ logrotate.conf file to meet this objectives?

A)

B)

C)

D)

Options:

A.

Option

B.

Option

C.

Option

D.

Option

Question 6

An administrator uses a tool to perform roiling deployments when the production application needs to be updated. The tool temporarily removes 10% of the systems from the load balancer at a time and it pushes the newest version of the application to each system. If there are errors the tool rolls back the changes. Which of the following does this scenario BEST describe?

Options:

A.

infrastructure as code

B.

Infrastructure automation

C.

Agent-based architecture

D.

Buid automation

E.

inventory management

Question 7

An administrator added a disk to a virtual machine. The administrator attempts to mount the first partition with the following command:

Mount/devsda1/mount_point

The administrator receives the following error message:

Mount: /mount_point: does not exist.

Which of the following BEST solves thrs issue and allows the administrator to run the mount command?

Options:

A.

mount -a

B.

Add the mount point to /etc/ fstab

C.

mount -f /dev/sda1/mount_point

D.

mkdir/mount_point

Question 8

An administrator tries to log m to a Linux host with the root account but receives the following error: permission denied. A colleague confirms the password being used is correct. Which of the following is the MOST likely cause..

Options:

A.

The administrator must first run ssh-copy-id

B.

The Linux host cannot connect to the LDAP server

C.

The root account is locked out from too many failed password attempts

D.

PermitRootLogin IS Set to no in /etc/sah/sshd/config

E.

The root account was removed from the system for security purposes

Question 9

Which of the following would be used to check a sensor input to a Linux system?

Options:

A.

GPIO

B.

HBA

C.

SCSI

D.

SATA

Question 10

Which of the following should an administrator use to display just the remote web browser locally?

Options:

A.

VNC

B.

RDP

C.

X11 forwarding

D.

SPICE

Question 11

A Linux administrator executed 1vextend to expand disk space to a partition from 8GB to 40GB However, the filesystem is not showing the additional space The administrator runs several commands and rectyes the following output:

Which of the following commands should the administrator run to resolve the issue?

Options:

A.

mXfs.extt /dev/mapper/VolQroup00-LogVo100

B.

mkfa_growffa /dev/mapper/Vci;r=.:p00-LogVo100

C.

reaize2ffa /dev/mapper/VolGroup00-LogVo100

D.

parted -a opt /dev/mapper/VolGroup00-LogVo100

Question 12

An administrator was updating several systems and received the following warning for each one: No support Locale en_US.UTF-8. Which of the following should the administrator run to eliminate this warning?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 13

An administrator needs to copy files from a Samba share where the server name is accounting. local, the share is reports, and the username is admin. Assuming local directories exist, which of the following commands would connect to the share?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Question 14

A Linux administrator needs to implement a secunty policy that prevents all connections from the marketing department that has the IP subnet 10.10.10.0/24 from reaching the current server. Which of the following commands can BEST accomplish this task?

Options:

A.

iptables -A output -s 10.10.10.0/24 -j DROP

B.

iptables -A input -s 10.10.10.0/24 -j ACCEFT

C.

iptables -A forward -s 10.10.10.0/24 -j ACCEPT

D.

iptables -A input -s 10.10.10.0/24 -j DROP

Question 15

An administrator needs to run the rescript. sh script stored on the /nr.t/disk Wesystem. but permission is denied;

The system options are:

The script properties are:

Which of the following will resolve the issue?

Options:

A.

mount -o remount, rw /mnt/disk

B.

chcon-u system_u -t admin_home_/mnt/disk/ myscript.sh

C.

mount -o remount, exec .mnt/disk

D.

setenforce permissive

Question 16

After running an Nmap scan on a local area network, a penetration tester notices several older Linux servers have port 23 open Which of the following should the systems administrator do as a secunty best practice?

Options:

A.

Use a non-standard port for Telnet

B.

Disable and umnstall the Telnet service

C.

Ensure the kernels are up to date with the latest patches

D.

Configure the firewall to allow Telnet access only from trusted networks

Question 17

A Linux administrator mounts a directory to a Linux workstation by executing the command mount -t ext4 /dev/sdb /mnt /leg. After rebooting the workstation the mounted device is missing. Which of the following commands should it is mounted after reboot?

Options:

A.

echo "/dev/adb /ant/log ext4 defaults 0 0" » /etc/fstab

B.

fsck /dev/sdb

C.

Ivchange --activate /dev/aab

D.

mkfs.txt4 /dev/sdb

Question 18

An administrator wrote the following script, but it failed:

Which of the following is MOST likely the error in the script?

Options:

A.

Line 1 should read: #!/bin/sh

B.

Line 4 should read: for line in $ { FILES}

C.

Line 6 should read: OWNER-'ls -1 ${LINE} I cut -d " " -f 1'

D.

Line 7 should read: echo '$(line) - S{OWNER)'

Question 19

A four-drive Linux NAS has been improperly configured. Each drive has a capacity of 6TB, for a total storage capacity of 24TB. To reconfigure this unit to be not pluggable for drive replacement and provide total storage of 11TB to 12TB, which of the following would be the correct RAID configuration?

Options:

A.

RAID 01

B.

RAID 03

C.

RAID 10

D.

RAID 50

Question 20

Which of the following is modified to reconfigure the boot environment?

Options:

A.

grub-mkconfig

B.

grub.cfg

C.

update-grub

D.

grub2-mkconfig

Question 21

An administrator has modified the configuration file for a service. The service is still running but is not using the new configured values. Which of the following will BEST remediate this issue?

Options:

A.

kill -HUP

B.

init 0

C.

service start

D.

renice -10

Question 22

A security administrator wants to display a warning banner before a user logs in. Which of the following files must be edited to make this happen?

Options:

A.

/etc/services

B.

/etc/issue

C.

/etc/hosts

D.

/etc/motd

Question 23

A Linux administrator is using a public cloud provider to host servers for a company’s website. Using the provider’s tools, the administrator wrote a JSON file to define how to deploy the servers. Which of the following techniques did the administrator use?

Options:

A.

Infrastructure as code

B.

Build automation

C.

Platform as a service

D.

Automated configuration

Question 24

A Linux engineer is troubleshooting a newly added SCSI device for a Linux server that needed more disk

space without rebooting. The engineer discovers that the new device is not visible by the Linux kernel in

fdisk -l output. Which of the following commands should be used to rescan the entire SCSI bus?

Options:

A.

echo "- - -" > /sys/class/scsi_host/host0/scan

B.

echo ' ' > /sys/class/scsi_host/host0/scan

C.

echo "- - -" > /sys/scsi/scsi_host/host0/scan

D.

echo "scan" > /sys/class/scsi_host/host0/scan

Question 25

A junior Linux administrator needs to access production servers using a secure SSH protocol. Which of the following files should contain the public key to gain remote access to the server?

Options:

A.

~/ssh/authorized-keys

B.

/etc/authorized_keys

C.

/etc/sshd/ssh.conf

D.

~/.ssh/authorized_keys

Question 26

A Linux administrator needs to take stock of USB devices attached to the system.

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

Options:

A.

lspci

B.

lsusb

C.

cat /proc/USB

D.

modprobe -–usb

Question 27

An administrator receives a warning about a file system filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the file system.

Which of the following commands would BEST assists the administrator in identifying the problem?

Options:

A.

lsof | grep largelogfile

B.

pkill /tmp/largelogfile

C.

pgrep largelogfile

D.

ps –ef | grep largelogfile

Question 28

An administrator reviews the following configuration file provided by a DevOps engineer:

Which of the following would the application parsing this file MOST likely have to support?

Options:

A.

YAML

B.

AJAX

C.

JSON

D.

SOAP

Question 29

A Linux administrator is testing a new web application on a local laptop and consistently shows the following 403 errors in the laptop’s logs”

The web server starts properly, but an error is generated in the audit log. Which of the following settings should be enabled to prevent this audit message?

Options:

A.

httpd_can_network_connect = 1

B.

httpd_enable_scripting = 1

C.

httpd_enable_homedirs = 1

D.

httpd_enable_cgi = 1

Question 30

An administrator notices that a long-running script, /home/user/script.sh, is taking up a large number of system resources. The administrator does not know the script’s function. Which of the following commands should the administrator use to minimize the script’s impact on system resources?

Options:

A.

renice

B.

kill

C.

bg

D.

nohup

Question 31

Joe, a member of the accounting group on a Linux system, is unable to write a file called “taxes” in the accounting shared directory. The ownership and permissions on the directory and file are as follows:

accounting drwxrw-r-- user = ann, group = accounting

taxes -rw-r--r-- , user = ann, group = accounting

Which of the following commands would allow Joe to write to the file? (Choose two.)

Options:

A.

chmod g+x accounting

B.

chmod 777 taxes

C.

chgrp taxes accounting

D.

chgrp accounting taxes

E.

chmod 774 accounting

F.

chmod u+x accounting

Question 32

Joe, a user, reports that he is no longer able to write files to his home directory. Upon inspection, the Linux

administrator discovers that attempting to create a new file gives the following error: No space left on device. However, the disk and partition are not full. Which of the following commands would be BEST for the administrator to use to continue troubleshooting this problem?

Options:

A.

rm -Rf ~/.*

B.

fsck -y /dev/sda1

C.

df -i

D.

fdisk /dev/sda

Question 33

An administrator notices a directory on a web server named /var/www/html/old_reports that should no

longer be accessible on the web. Which of the following commands will accomplish this task?

Options:

A.

chmod 000 /var/www/html/old_reports

B.

chgrp root /var/www/html/old_reports

C.

chown apache /var/www/html/old_reports

D.

setenforce apache /var/www/html/old_reports

Question 34

A user has connected a Bluetooth mouse to a computer, but it is not working properly. Which of the following commands should the systems administrator use to fix the issue?

Options:

A.

lsmod –i bluetooth

B.

insmod bluetooth

C.

modprobe –r bluetooth

D.

depmod –i bluetooth

Question 35

A Linux administrator must identify a user with high disk usage. The administrator runs the # du –s /home/* command and gets the following output:

Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.

Which of the following commands will accomplish this task?

Options:

A.

df –k /home/User/files.txt

B.

du –a /home/User3/*

C.

du –sh /home/User/

D.

find . –name /home/User3 -print

Question 36

The lead Linux has added a disk, /dev/sdd, to a VM that is running out of disk space. Place the following steps in the correct order from first (1) to last (4) to add the disk to the existing LVM.

Options:

Question 37

An administrator notices the HISTSIZE variable is 50, using the commands below:

HISTSIZE=50

export HISTSIZE

The administrator rechecks the HISTSIZE value using echo HISTSIZE but gets no value. Which of the

following commands should the administrator use to retrieve its value?

Options:

A.

printenv | grep $HISTSIZE

B.

echo HISTSIZE

C.

printf HISTSIZE

D.

grep $HISTSIZE

Question 38

An administrator needs to change the DNS domain search order of a single Linux host to localize it better.

Which of the following files should the administrator edit?

Options:

A.

/etc/resolv.conf

B.

/etc/hosts

C.

/etc/nsswitch.conf

D.

/etc/dhcpd.conf

Question 39

An administrator wants to know the amount of memory installed on a Linux server. Which of the following

commands can be used to accomplish this task?

Options:

A.

cat /sys/proc/meminfo

B.

cat /proc/meminfo

C.

cat /proc/sys/meminfo

D.

cat /sys/meminfo

Question 40

A user cannot write files to the /home/user directory. The junior Linux administrator runs the following commands:

Which of the following BEST represents why the user cannot write files?

Options:

A.

The filesystem is out of inodes.

B.

The filesystem is out of file space.

C.

The filesystem is not configured for the user to write to it.

D.

The filesystem does not have a group write permission.

Question 41

A user issues the following command:

ls –l /var/log | egrep –e ‘^d[rwx]{3}.*[rw-]{3}.*’

The list of files in the system is shown below:

Which of the following results matches the command issued?

Options:

A.

drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades

drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades

B.

drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt

drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade

drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades

C.

drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt

drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade

drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades

D.

-rw-r--r-- 1 root root 2877 Apr 24 14:14 alternatives.log

-rw-r--r-- 1 syslog adm 246139 Jun 12 15:21 cloud-init.log

-rw-r--r-- 1 root root 8872 Jun 12 15:21 cloud-init-output.log

Question 42

A systems administrator downloads an application’s source files, compiles the application, and installs it per

the application’s installation instructions. When trying to run the application, the system states:

$ occmd

bash: occmd: command not found…

Running the locate command shows it does exist in the following location:

/opt/occmd/bin/occmd

Which of the following should the administrator do to allow the command to run properly? (Choose two.)

Options:

A.

sudo ln –s /opt/occmd/bin/occmd /usr/local/bin/occmd

B.

echo “export PATH=$PATH:/opt/occmd/bin” >> ~/.bashrc

C.

mv /opt/occmd ~/ && ln –s ~/occmd/bin/occmd ./occmd

D.

echo “#!/bin/bash \n ${which occmd}” > /usr/bin/occmd.sh

E.

sudo mv /opt/occmd/bin/occmd /etc/bin/

F.

cd /opt/occmd/bin && chmod +x ./occmd && restorecon –rv *

Question 43

A junior Linux administrator needs to create 16 empty files quickly that will contain sales information for each

quarter for the past four years. Which of the following commands will meet this requirement?

Options:

A.

touch {2015,2016,2017,2018}.{q1,q2,q3,q4}

B.

touch [2015,2016,2017,2018].[q1,q2,q3,q4]

C.

touch ‘2015,2016,2017,2018‘.‘q1,q2,q3,q4‘

D.

touch {2015.2016.2017.2018}.{q1.q2.q3.q4}

Question 44

A customer reports a Linux production server is randomly suffering degraded performance. The administrator verifies that the sysstat package is installed and enabled on the server.

Which of the following would BEST determine what is causing the impact on performance?

Options:

A.

Create a cron job that runs uptime every 15 minutes to collect historical data of the load average of the system.

B.

Leave a ping running overnight from a laptop to the server to catch any latency encountered.

C.

Analyze the data in /var/log/sa using the sar command.

D.

Open a screen session and run top inside of it. Let it run over night and collect the data.

Question 45

A user requested a USB serial device to be added to a desktop computer. The device has built-in kernel driver

support. The administrator tested the device installation and access, but the user cannot access the serial port.

Each time the user attempts to access the device, an error log is created that shows the user does not have

permission to use the serial port. Which of the following will add a user to the group that has serial port

capabilities?

Options:

A.

usermod –a –G serialport $USER

B.

usermod –a –G modem $USER

C.

usermod –a –G dialout $USER

D.

usermod –a –G root $USER

Question 46

The following represents a partial listing of a user’s .bashrc file:

HISTSIZE=800

HISTFILESIZE=1000

umask 2002

HISTCONTROL=ignoreboth

When the user opens a terminal, an error message appears:

Octal number out of range

Which of the following lines in the partial .bashrc should be modified to prevent the error from occurring?

Options:

A.

HISTSIZE=800

B.

HISTFILESIZE=1000

C.

umask 2002

D.

HISTCONTROL=ignoreboth

Question 47

A junior systems administrator needs to make a packet capture file that will only capture HTTP protocol data to a file called test.pcap.

Which of the following commands would allow the administrator to accomplish this task?

Options:

A.

netcat -p 80 -w test.pcap

B.

tshark -r test.pcap -o http

C.

tcpdump -i eth0 port 80 -r test.pcap

D.

tcpdump -i eth0 port 80 -w test.pcap

Question 48

An administrator is trying to access a server in a cloud via SSH but is unable to log in. The administrator determines the company’s IP address has been blocklisted on the server.

Which of the following should the administrator do to prevent being blocked in the future?

Options:

A.

Add the company’s TLS certificate to the authorized_keys and known_hosts files.

B.

Modify the cloud provider security rules to allow all connectors form the company’s IP address.

C.

Add the company’s IP address from the /etc/hosts.allow.

D.

Turn on SELinux and enable the SSH context.

Question 49

A Linux user needs to create a file named newfile in the home directory that mirrors the contents of the /

etc/resolv.conf file.

Which of the following commands would accomplish this task?

Options:

A.

cat /etc/resolv.conf > /home/user/newfile

B.

echo /etc/resolv.conf > /home/user/newfile

C.

grep /etc/resolv.conf < /home/user/newfile

D.

printf /etc/resolv.conf > /home/user/newfile

Question 50

Users in the sales department are unable to create new files in the shared directory /Sales. A junior Linux

administrator determines the permissions on the /Sales directory are set to rwxr-----, and sales is the

group owner of the directory.

Which of the following is the BEST command for the junior administrator to issue to allow the users to create

new files?

Options:

A.

umask 002

B.

chmod 770 /Sales

C.

chmod g+s /Sales

D.

chmod 777 /Sales

Question 51

A Linux administrator looks at the /etc/timezone file and determines the need to change the time zone from California to New York temporarily. Which of the following commands will accomplish this?

Options:

A.

sed -f TZ=America/New_York

B.

cat TZ=America/New_York

C.

export TZ=America/New_York

D.

printf TZ=America/New_York

Question 52

A Linux administrator is helping the security team troubleshoot an SELinux policy violation incident. Which of

the following would be the BEST utility command to display SELinux violation and AVC denial messages?

Options:

A.

journalctl | grep sealert

B.

sealert –a /var/log/audit/audit.log

C.

aureport | grep AVC

D.

cat /var/log/messages | grep selinux

Question 53

A user wants to use terminal services from a Windows workstation to manage a Linux server. Which of the following should be installed on the Linux server to enable this functionality?

Options:

A.

VNC

B.

rdesktop

C.

SPICE

D.

XRDP

Question 54

A technician suspects a company's border firewall is down, thus blocking Internet access. The technician executes the following commands:

#ping -c 1 firewall.company.com

64 bytes from firewall.company.com (192.168.1.1): icmp_seq=1 ttl=64 time=0.061ms

#ping -c 16 www.comptia.com

16 packets transmitted, 0 received, 100% packet loss, time 14999ms

Which of the following commands should the technician use to BEST determine the source of this outage?

Options:

A.

tcpdump

B.

nmap

C.

dig

D.

traceroute

Question 55

An administrator recently installed a second NIC in a server to interact with machines in an isolated enclave. However, the mnetworking on the server has not worked since it was installed. The administrator reviews the following output:

Which of the following should be the FIRST action to remediate the issue?

Options:

A.

Add a new route for each device in the isolated endave

B.

Set the ipv4.never-default attribute to yes for the new interface, enp0s4

C.

Change DEFROUTE to no for the new interface and restart the networking

D.

Restart the firewall to ensure traffic is handed appropriately

Question 56

Vytvcft of the following a a fie that can define how to build deploy and mstaf various components for a Linux application hosted m a cloud environment?

Options:

A.

OVF

B.

YAML

C.

Virsh

D.

VMM

Question 57

Ann, a Linux administrator, is storing scripts in a private Git repository. Which of the following commands should Ann use to avoid entering the login and password every time Ann commits change?

Options:

A.

Git init shared-true

B.

Echo authe n tapprove ‘’>> .git/config

C.

Git credential approve

D.

Git config credential.help cache

Question 58

The dracut command is used to:

Options:

A.

create initial RAMDisk images for preloading modules.

B.

compile the Linux kernel images used to boot the OS.

C.

create the bootloader executable files.

D.

create the Boot Manager configuration files.

Question 59

Which of the following server roles is MOST appropriate to route files to multifunction devices?

Options:

A.

Proxy

B.

Router

C.

Print server

D.

Web server

Question 60

An administrator receives a USB drive and wants to make an exact copy of the disk before starting to work on it. One of the partitions on the USB drive was mounted as /dev/sdc1.

Which of the following commands should the administrator use?

Options:

A.

dd if=/dev/sdc of=~/usb_copy.img bs=512

B.

dd if=/dev/sdc1 of=~/usb_copy.img count=1024

C.

dd if=/dev/sdc1 of=~/usb_copy.img bs=1024

D.

dd of=/dev/sdc if=~/usb_copy.img bs=1M

Question 61

A system administrator has discovered a drive is malfunctioning and needs to be replaced in a server. The administrator lists properties of the exiting storage before attempting the replacement:

After replacing the malfunctioning drive, which of the following is the BEST way to create the proper partition table on the new drive?

Options:

A.

Parted –a optimal /dev/sdb primary 0% 2000MB

B.

Fdis.dev/sdb< echo p; echo d; eacho w)

C.

Mkpart primary 1MB 2000MB /dev/sdb

D.

Sfdisk –dev/sda| sfdisk/dev/sdb

Question 62

A Linux administrator needs to know the MAC address of the server’s gateway.

Which of the following commands should the administrator run to obtain this information?

Options:

A.

arp -gw

B.

arp -a

C.

arp -gwi

D.

arp -gtw

Question 63

A Linux administrator issues the following command with root or sudo privileges:

Rmp -1 installpackage.rpm --nodeps

Which of the following should the administrator expect to see in the output?

Options:

A.

The installpackage.rmp package will not fail due to checks for dependencies.

B.

The installpackage.rmp package will not fail due to missing dependencies

C.

The installpackage.rmp package will not be installed, and there will be dependencies

D.

The installpackage.rmp package will not be installed, and there not be check for dependencies

Question 64

A system administrator is setting up a cron job that will copy thousands files from a remote directory on a scheduled basic. The file contents should retain their original permissions, including and group ownership, and the cron job should run for the least amount of the possible. Which of the following is the BEST program to use in this situation?

Options:

A.

Rsync

B.

Curl

C.

Scp

D.

Wget

E.

sftp

Question 65

An administrator clones a Git repository onto a local laptop. While inspecting the code, the administrator notices a bug and wants to fix it. Which of the following is the BEST command for the administrator to use to test a patch for the prior to updating the version saved in master?

Options:

A.

Init

B.

Branch

C.

Stash

D.

Comit

E.

merge

Question 66

A systems administrator has retrieved the latest copy of the system backup files, which had been stored offsite at a third-party vendor. The systems administrator wants to validate that the data was not

modified since the backup.

Which of the following would BEST verify that the data remained the same?

Options:

A.

Perform a MD5 hash on the data.

B.

Perform a SCP from the backup.

C.

Perform rsync.

D.

Restore from the last full backup.

Question 67

An administrator wants to be able to access a remote server. After creating an SSH key pair, which of the following describes where the public key should be placed to allow for key-based authentication?

Options:

A.

-/, ssh/authorized_keys

B.

-/ssh/id_ras.pub

C.

-/.ssh/known_hosts

D.

-/.ssh/config

Question 68

A Linux administrator needs to give user2 full permissions to the /opt/share/test directory. Permission for user1 and group2 must remain the same. The administrator runs the Is-Id /opt/share/test/ command and receives the output below:

Which of the following command is the BEST to perform this task?

Options:

A.

Chown user1:user2/opt/share/test

B.

Setfac1-m u:user2;rwx /opt/share/test

C.

Chmod 757 /opt/share/test

D.

Chgrp user2 opt/share/test

Question 69

Joe is no longer employed by a company, and Ann is taking over his projects. Several team members work out Of the directory, including Ann. The administrator needs to assign ownership Of all of Joe's files in the /projects directory to Ann. Which of the following should the administrator run to accomplish this task?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 70

An administrator is adding an existing user named ‘’buddy’’ to the Apache group. Which of the following should the administrator perform to accomplish this task?

Options:

A.

sseradd –g apache buddy

B.

ssermod –g apche buddy

C.

sudo useradd –g apache buddy

D.

sudo usermod –g apachebuddy

Question 71

Which of the following can cause a kernel panic message after a system reboot?

Options:

A.

Processor failure

B.

PXE boot failure

C.

USB device failure

D.

Drive failure

Question 72

Which of the following directories contains information related to various runtime processes, such as hardware and system memory?

Options:

A.

/Usr/bin

B.

/Opt

C.

/Proc

D.

/etc/local/

Demo: 72 questions
Total 483 questions