You need to list all of the .gif and .jpg files

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.

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.

A.
find ./images -type f \( -name \*.gif -o -name \*.jpg \) ‘{}’

B.
find ./images -type f \( -name ‘*.gif’ -a -name ‘*.jpg’ \) -print

C.
find ./images -type f \( -name \*.gif -o -name \*.jpg \)

D.
find ./images -type f -name “*.gif” -name “*.jpg” -print

E.
grep ash userdata ; grep ksh userdata

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *