Ensurepass

QUESTION 411

You are writing a script and want to test the exit status of a process. Which of the following is true?

A. The normal exit value differs.

B. You can’t test the normal exit value.

C. The normal exit value is $EXIT.

D. The normal exit value is 0.

Answer: D


QUESTION
412

What command prints available functions?

A.

A.A. declare -f

B. set

C. typeset

D. function()

Answer: A


QUESTION
413

A user complained that programs started from his shell won’t use his favorite editor. Which of the following files should you edit to change this?

A. .editor

B. .bashrc

C. .bash_rc

D. ~/bash.conf

Answer: B


QUESTION
414

What command will allow you to see all of your environment variables?

A. echo $*

B. env

C. which

D. export

Answer: B


QUESTION
415 CORRECT TEXT

The very first line of a shell script should always contain what two characters at the beginning of the line?

Answer: #!


QUESTION
416

Which of the following commands shows ONLY the user id of Bob? (Select TWO)

A. cat /etc/passwd | grep Bob | cut -d: -f3

B. cat /etc/passwd | grep Bob | cut -f: -d3

C. grep Bob /etc/passwd | awk -F: ‘\’7b print $3 }’

D. grep Bob /etc/passwd | awk -f: ‘\’7b print $3 }’

E. grep Bob /etc/passwd | cut -F: -d3

Answer: A,C


QUESTION
417

Which of the following commands is used to test if the syntax of Apache’s configuration files are correct?

A. apacheconftest -a

B. apachectl configtest

C. ab -ct

D. httest -c

Answer: B


QUESTION
418

We have bash script ~/myscript shown below:

Shift echo $2

We call this script:

~/myscript alpha beta gamma delta.

What will we see?

A. alpha

B. beta

C. gamma

D. delta

Answer: C


QUESTION
419

inetd.conf was changed. How to reinit changes?

A. restart inetd

B. find inetd’s PID and send signal 15 to it

C. find inetd’s PID and send signal SIGHUP to it

Answer: C


QUESTION
420 CORRECT TEXT

You are logged in as root. How to check user brown’s group?

Answer: groups brown

Download Latest LPI 117-102 DUMPS Real Free Tests , help you to pass exam 100%.

Comments are closed.