Loading...

Linux vi修改文件時遇到:E212無法打開文件進行寫入

Temperature: 0 °C

Mark ChangMark Chang
author_tools

執行修改

vi /etc/ssh/sshd_config

使用wq(儲存後離開)或者是wq!(唯讀檔案強制儲存後離開)指令
卻一直出現提示E212 can't open file for writing

Linux vi修改文件時遇到:E212無法打開文件進行寫入
意思是不能保存。
原因:權限不夠,普通無法保存,需要使用超級用戶才可以。
解決方法:切換至超級用戶,再進行修改保存。
指令:sudo su 切換至超級用戶。
若要切換成其他用戶則可使用
sudo su 用戶名稱

以上紀錄。

https://innstory.com/story-Linux_vi修改文件時遇到:E212無法打開文件進行寫入-2312
Linux

Prev
 JavaScript_搜尋字串並取代

Next
設置屬性_PHP_PDO_setAttribute 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

Linux下查看版本號指令

Linux下查看版本號指令

lsbrelease a ssss5 其他指令查詢方式 [root@localhost ~]# un...

設置屬性 PHP PDO setAttribute

設置屬性 PHP PDO s...

PDO::ATTRCASE:強制列名為指定的大小寫。 PDO::CASELOWER:強制列名小寫。 ...

PDO常用方法

pexelsphoto555.jpeg PDO::query() 主要用於有記錄結果返回的操作(PD...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format