Which of the following comparison operators for test work on elements in the file system? (Choose two.)
Which of the following comparison operators for test work on elements in the file system? (Choose two.)
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.
right answer: c) -d d) -f