Review 53 702-100 practice questions with answer explanations and community insights.
Question 1
How often does ? match the preceding expression in a regular expression?
Two or more times
Exactly one time
Any number of times
Zero or one times
One or more times
Question 2
Consider the following file legalfile: disclosure non-disclosure non disclosure Which line or lines in the file does the following command match? Note the space after the dash within the brackets. grep "non[- ]disclosure" legalfile
disclosure only
non-disclosure only
non disclosure only
disclosure and non-disclosure only
non-disclosure and non disclosure only
Question 3
Which command shows all processes owned by the user bob?
who -l bob
pgrep -u bob
ps -o -a bob
top bob
last -p bob
Question 4
Which of the following excerpts is a valid if condition in the Bourne shell?
Question 5
Which command finds all directories within the current user’s home directory?