Q41
Which command is used to display and create files?
A.
cat
B.
vi
AnswerC.
ed
D.
lyrix
E.
None of the above
Answer: Option B
Solution
Answer: Option B
Solution:
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.