New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Linux+ XK0-004 Exam Dumps

Page: 13 / 18
Total 483 questions

CompTIA Linux+ Certification Exam Questions and Answers

Question 49

A Linux administrator is running a script that runs a Java application but receives the following error:

Error: Java_Home is not set

Java is installed on the Linux server and java –version returns a value. Which of the following should the administrator add to the script to resolve this issue?

Options:

A.

Export PATH-$PATH: $JAVA_HOME

B.

Echo ‘which java > $JAVA_HOME

C.

Export Java_Home which java

D.

Set JAVA_HOME –which java

Question 50

A systems administrator needs to install software packages on a server from an Internet-based repository. The server does not have Internet connectivity.

Which of the following can be used to allow the server to connect to the Internet through the systems administrator’s desktop?

Options:

A.

Local package repository

B.

UUCP

C.

Remote SSH port forwarding

D.

X11 forwarding

Question 51

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 52

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

Page: 13 / 18
Total 483 questions