E212: Can't open file for writing Press ENTER or type command to continue

E212: Can‘t open file for writing Press ENTER or type command to continue

出现这个错误的原因可能有两个:

1.当前用户的权限不足

2.此文件可能正被其他程序或用户使用。

一般错误原因都是前者,解决方案是在使用vi命令打开文件时,前面加上sudo来临时提供管理员权限,比如使用命令“sudo vi hosts”打开编辑文件。

由此看来,sudo命令是很有用的,当我们执行某种操作系统提示诸如“operation not permitted”等权限不足信息时,我们很多时候都可以在命令前面加上sudo来解决权限不足问题。比如当我们从Linux服务器上下载某一个文件或上传某一个文件有可能提示这个,也有肯能直接上传不成功但是什么都没提示;这时你就应该想想是不是账号的权限不足,加个sudo试试。

E212: Can't open file for writing Press ENTER or type command to continue

原文地址:https://www.cnblogs.com/ltb6w/p/10054064.html

时间: 2024-08-29 11:56:51

E212: Can't open file for writing Press ENTER or type command to continue的相关文章

vi编辑文件保存后,提示""vimrc" E212: Can't open file for writing Press ENTER or type command to continu"

出现这个错误的原因可能有两个: 1.当前用户的权限不足: 2.此文件可能正被其他程序或用户使用. 一般错误原因都是前者,解决方案是在使用vi命令打开文件时,前面加上sudo来临时提供管理员权限,比如使用命令“sudo vi vimrc”打开编辑文件. vi编辑文件保存后,提示""vimrc" E212: Can't open file for writing Press ENTER or type command to continu" 原文地址:https://w

Linux下使用vi新建文件保存文件时遇到错误:E212: Can't open file for writing

出现E212: Can't open file for writing的问题是由于权限问题导致的,解决方法有以下思路: 1.使用root进行登录,然后再操作. 2.在使用命令时,前面加sudo. 3.如果是多级文件夹的文件时,由于这个文件夹没有创建,所以要先创建这个文件夹,再来操作这个文件. Linux下使用vi新建文件保存文件时遇到错误:E212: Can't open file for writing

Linux :: vi E212: Can't open file for writing

Linux :: vi E212: Can't open file for writing sysct1.conf 可能无写权限!查看方法:ls -lh /etc/sysct1.conf如果没有,则chmod 666 /etc/sysctl.conf(root 用户) Linux :: vi E212: Can't open file for writing

linux操作提示:“Can't open file for writing”或“operation not permitted”的解决办法

在linux上使用vi命令修改一个文件内容的时候,发现无法保存,每次写完使用":q!"命令可以正常退出但是使用":wq!"命令保存文件并退出时出现一下信息提示: E212: Can't open file for writing Press ENTER or type command to continue 出现这个错误的原因可能有两个:    1.当前用户的权限不足    2.此文件可能正被其他程序或用户使用.      一般错误原因都是前者,解决方案是在使用vi

“Can't open file for writing”或“operation not permitted”的解决办法

linux使用vi命令修改一个文件内容的时候,发现无法保存,每次写完使用":q!"命令可以正常退出但是使用":wq!"命令保存文件并退出时出现一下信息提示: E212: Can't open file for writing Press ENTER or type command to continue 出现这个错误的原因可能有两个: 1.当前用户的权限不足,解决办法:sudo su切换到超级用户,然后在进行操作 2.此文件可能正被其他程序或用户使用. "

What happens when you type an URL in the browser and press enter?

What happens when you type an URL in the browser and press enter? 1. You type maps.google.com into the address bar of your browser. 2. The browser checks the cache for a DNS record to find the corresponding IP address of maps.google.com. 3. If the re

mysql workbench 报错:Can't analyze file, please try to change encoding type...

workbench 识别csv第一行作为column名,column名不能为中文,所以报错.解决方法:csv第一行改为英文列名,再进行导入. mysql workbench 报错:Can't analyze file, please try to change encoding type... 原文地址:https://www.cnblogs.com/HeartBlood/p/11888165.html

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type"))报错解决方式

安装R包时产生如下错误: Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : 无法打开链结 此外: Warning messages: 1: In download.file(url, destfile, method, mode = "wb", ...) : downloaded length 409600 != repor

Fatal error LNK1168: cannot open *.exe file for writing

当你使用Visual Studio 2008/2010/2012(至少我使用过这几个版本)时,在编译链接生成.exe文件时,经常出现上述链接错误.根本原因何在?说实在的,我也不知道. 网络搜索后,发现有不少千奇百怪的答案.我家中机器配置低一些,速度自然慢不少.相比来说,办公室机器配置高,速度比家中快不少.因此,同样的程序,出现上述错误的机率在办公室比家中低得多得多.如果说家中每天出现10次,则办公室每天不过1-2次. 网络上问题解答还有其他各种样,你不要说我不了解.时隔多日,今天在家中再使用VS