Examveda
Examveda

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.

This Question Belongs to Computer Science >> Unix

Join The Discussion

Comments ( 1 )

  1. Pratik Parmar
    Pratik Parmar :
    3 years ago

    It is not use for displaying. Tee command is used for displaying.

Related Questions on Unix