What does the following command do? [code] $ vi file001 [/code]

Thành Đạt

New member
What does the following command do?
Code:
    $ vi  file001
A. open file named file001
B. edit file named file001
C. delete a file named file001
D. open file if it exists else creates a new file
 
Answer: d
Explanation: vi editor can be used for creating and editing files. In the above command, if file001 already exists, then the contents of the file will be displayed. Otherwise, an empty file named file001 will be created.
 

Tìm kiếm

Back
Top