T Thành Đạt New member Sep 19, 2021 #1 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
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
Đ Đức Linh New member Sep 19, 2021 #2 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. Upvote 0 Downvote
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.