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

使用jquery判斷上傳檔案大小

使用jquery判斷上傳檔案...

首先得引用jquery var fileSize = document.getElementById...

Android 禁止螢幕旋轉

Android 禁止螢幕旋轉...

首先找到AndroidManifest.xml檔案 位置在app/manifests/路徑底下 在 ...

文件上傳過程中使用白名單、黑名單、或者MIME做認證

文件上傳過程中使用白名單、黑...

pexelsphotolock5 是不是被資安的問題搞得很煩? 我想,在建置系統的過程中,或多或少都...

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