How do you edit a file from the command line?



What Windows command line program allows you to edit files in a full-screen mode?

A) EDIT

B) EDLIN

C) EDITOR

D) VI


Answer: A) EDIT

The edit command is a very useful full-screen editor that can be used from the command line. This is especially useful when you need to make changes to a text file but you have no Windows environment from which to work.

The incorrect answers:

B) EDLIN
The EDLIN command is another command-line editor, but it only provides line editing functions without the useful user interface of a full-screen mode.

C) EDITOR
There’s no such command or program named EDITOR at the Windows command line.

D) VI
The vi editor is well known in Unix and Linux circles, but it’s not available at the Windows command line.

Want to know more? Watch “The Windows Command Line.”


The intricacies of the Windows command line may seem difficult to grasp, but with a little bit of practice and knowledge you’ll begin to take advantage of some powerful functionality. In this video, we’ll use the Windows command line to manage files and directories, edit files, perform diagnostics and tune the operating system.