Solved

A Linux Administrator Wants to Obtain a List of Files

Question 141

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents