What would you use to edit contents of the file in Linux? Describe some of the important commands mode in vi editor?
Answer Posted / Md Hasan Ahmad
In Linux, a common editor for editing files is `vi`. To start editing a file with `vi`, use the command `vi <file_name>`. Here are some important commands in `vi`:
- `i`: Enter insert mode to add or edit text
- `Esc`: Exit insert mode and return to command mode
- `:wq`: Write the changes and quit
- `:q!`: Quit without saving changes
- `/<search_term>`: Search for a specific term in the file
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers