Which of the following shell scripts will accomplish this task?

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/bashfind /etc Cname services | sort > /var/tmp/foundservices
B . #/bin/bashlocate /etc Csort Cname services > /var/tmp/foundservices
C . #/bin/bashfind Cname services Csort </var/tmp/foundservices
D . #/bin/bashfind /etc Cname services Csort > /var/tmp/foundservices

Answer: B

Latest XK0-004 Dumps Valid Version with 267 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments