Vidyalelo
Computer Science · Q12

UNIX

Engineering and GATE · Computer Science · question 12

Q12

Which of the following files will displayed by this command cat *ch*

A.
patch
B.
catch
C.
.ch
D.
All of the above
Answer
E.
None of the above

Answer: Option D

Solution

Answer: Option D
Solution:
In Unix, the command cat ch will display the contents of all files in the current directory that have "ch" in their filenames. Therefore, it will display the contents of files like patch, catch, and .ch.
So, All of the above files will be displayed by the command cat ch.