Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

Free CompTIA Linux+ Exam Practice Questions

Question # 141

A technician just fixed a few issues in some code and is ready to deploy the code into production. Which of the following steps should the technician take next?

Options:

A.  

Create a new branch using git checkout.

B.  

Perform a git clone to pull main down.

C.  

Create a git pull request to merge into main.

D.  

Perform a git pull to update the local copy of the code.

Discussion 0
Question # 142

A Linux administrator is creating a directory called CompTIA_doc and needs to switch to another location to perform some system-related tasks. Which of the following commands should the administrator use for this task?

Options:

A.  

mkdir CompTIA doc & cd CompTIA doc

B.  

mkdir CompTIA_doc > cd CompTIA_doc

C.  

mkdir CompTIA_doc || cd CompTIA_doc

D.  

mkdir CompTIA_doc && cd CompTIA_doc

Discussion 0
Question # 143

A security analyst is monitoring the network to identify latency or slowdowns during a vulnerability scan. Which of the following functions will best achieve this?

bash

function x() {

info=$(ping -c 1 $1 | awk -F "/" 'END {print $5}')

echo "$1 | $info"

}

Options:

A.  

function x() { info=$(dig $(dig -x $1 | grep ptr | tail -n 1 | awk -F ".in-addr" '{print $1}').origin.asn.cymru.com TXT +short); echo "$1 | $info" }

B.  

function x() { info=$(ping -c 1 $1 | awk -F "/" 'END {print $5}'); echo "$1 | $info" }

C.  

function x() { info=$(nc -m 40 $1 | awk 'END {print $1}'); echo "$1 | $info" }

D.  

function x() { info=$(geoiplookup $1); echo "$1 | $info" }

Discussion 0
Question # 144

A Linux systems administrator receives a report that a user is unable to start an application. The administrator reviews the following error:

yaml

CopyEdit

Killed process 1141 (application) ... total-vm:5622584kB ... oom_score_adj:0

oom_reaper: reaped process 1141 ...

Which of the following describes the situation?

Options:

A.  

The system does not have adequate CPU capacity to allocate to the application.

B.  

The application is trying to connect to multiple remote systems without having an adequate number of connections available.

C.  

The application is trying to open more files than the available disk can accommodate.

D.  

The application is trying to allocate more memory than the available system and swap space can support.

Discussion 0
Question # 145

A systems administrator wants to upgrade /bin/ someapp to a new version, but the administrator does not know the package name. Which of the following will

show the RPM package name that provides that binary file?

Options:

A.  

rpm —qf /bin/ someapp

B.  

rpm —Vv / bin/ someapp

C.  

rpm - P / bin/ some app

D.  

rpm —i / bin/ someapp

Discussion 0
Question # 146

A Linux administrator attempts to log in to a server over SSH as root and receives the following error message: Permission denied, please try again. The administrator is able to log in to the console of the server directly with root and confirms the password is correct. The administrator reviews the configuration of the SSH service and gets the following output:

Question # 146

Based on the above output, which of the following will most likely allow the administrator to log in over SSH to the server?

Options:

A.  

Log out other user sessions because only one is allowed at a time.

B.  

Enable PAM and configure the SSH module.

C.  

Modify the SSH port to use 2222.

D.  

Use a key to log in as root over SSH.

Discussion 0

XK0-005 PDF

XK0-005 PDF (Printable)
$54.25
$154.99

XK0-005 Testing Engine

XK0-005 PDF (Printable)
$59.5
$169.99

XK0-005 PDF + Testing Engine

XK0-005 PDF (Printable)
$74.55
$212.99

Free Exams Sample Questions