Summary of error reporting problems in linux

1

After using vim to modify some configuration files, the problem of'readonly' option is set (add! To override) often appears when you exit. There are usually three situations:
1. The error is that the current user does not have permission to modify the file In this case, you can force exit: q!, first obtain root privileges and then modify (root privileges obtain command is: su root and then enter your login password)
2. The file is not saved correctly and exits, and it is being opened. Ask others to close it and save it
3. If everyone closes the file, it prompts that some people did not close it, delete the temporary file of the file and you can open, modify, and save normally; there is a display that the file is not closed:
steps:
1 、Press Esc
2. Input: set noreadonly
3. You can save in the normal way: wq

Guess you like

Origin blog.csdn.net/qq_38220334/article/details/109295277