Oracle
1Z0-876 · Question #38
You have a directory named images, this directory contains various digital images of various file format types. You need to list all of the .gif and .jpg files. You decide to use a find command to…
The correct answer is C. find ./images -type f \( -name \*.gif -o -name \*.jpg \). See the full explanation below for the reasoning.
Question
You have a directory named images, this directory contains various digital images of various file format types. You need to list all of the .gif and .jpg files. You decide to use a find command to gather this information. Choose the command that will display these files correctly.
Options
- Afind ./images -type f ( -name *.gif -o -name *.jpg ) '{}'
- Bfind ./images -type f ( -name '.gif' -a -name '.jpg' ) -print
- Cfind ./images -type f ( -name *.gif -o -name *.jpg )
- Dfind ./images -type f -name ".gif" -name ".jpg" -print
- Egrep ash userdata ; grep ksh userdata
How the community answered
(19 responses)- A5% (1)
- C79% (15)
- D5% (1)
- E11% (2)
Community Discussion
No community discussion yet for this question.