美文网首页
【CMD】wq 和 wq! 区别

【CMD】wq 和 wq! 区别

作者: 盐果儿 | 来源:发表于2024-02-04 01:11 被阅读0次

:wq

stands for "write" and "quit." It saves the changes made to the file and exits the editor.

:wq!

also stands for "write" and "quit," but with an exclamation mark. It forcefully writes the changes to the file, even if there are permission issues or the file is marked as read-only. It then exits the editor.

相关文章

网友评论

      本文标题:【CMD】wq 和 wq! 区别

      本文链接:https://www.haomeiwen.com/subject/xsffadtx.html