Which command is used to display and create files?
A. cat
B. vi
C. ed
D. lyrix
E. None of the above
Answer: Option B
Solution (By Examveda Team)
In Unix, the vi command is a text editor that is commonly used to display and create files. It allows users to view and edit text files directly within the terminal. When you open a file with vi that doesn't exist, it creates a new file with that name.So, vi is the command used to both display and create files in Unix.
It is not use for displaying. Tee command is used for displaying.