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.
What command prints available functions?
A.A. declare -f
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?
What command will allow you to see all of your environment variables?
A. echo $*
QUESTION 415 CORRECT TEXT
The very first line of a shell script should always contain what two characters at the beginning of the line?
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
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
We have bash script ~/myscript shown below:
Shift echo $2
We call this script:
~/myscript alpha beta gamma delta.
What will we see?
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
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%.