102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 40


Which of the following comparison operators for test work on elements in the file system? (Choose two.)

Show Answer
Correct Answer: CD

The comparison operators '-d' and '-f' work on elements in the file system. The '-d' operator checks if a given path refers to a directory, and the '-f' operator checks if a given path refers to a regular file. These operators are used specifically for file system elements. On the other hand, '-z' tests if a string is empty, '-eq' compares integers for equality, and '-lt' compares integers for less than, which do not directly relate to file system elements.

Discussion

1 comment
Sign in to comment
d3iroOptions: CD
Sep 5, 2022

right answer: c) -d d) -f