Answer :
The vi editor creates a duplicate of the file called a. buffer.
When you use the vi editor, it creates a duplicate of the file in what is called a buffer. This buffer is basically a chunk of computer memory where the file's contents are temporarily held to make editing possible. Here is a typical workflow:
Typical Workflow in vi Editor:
- Open a file, which loads its content into a buffer.
- Make changes to the buffer's content while the original file remains unchanged.
- Save the buffer, which writes the modified content back to the original file, updating it.