Solved

A Linux Administrator Wants to Obtain a List of Files

Question 29

Multiple Choice

A Linux administrator wants to obtain a list of files and subdirectories in the /etc directory that contain the word "services". Once the files and subdirectories are discovered, they should be listed alphabetically in the /var/tmp/foundservices file. Which of the following shell scripts will accomplish this task?


A) #/bin/bash find /etc -name services | sort > /var/tmp/foundservices
B) locate /etc -sort -name services > /var/tmp/foundservices
C) find -name services -sort D) find /etc -name services -sort > /var/tmp/foundservices

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions