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

JavaScript 取得今天日期

JavaScript 取得今...

JavaScript 使用 Date() 來取得時間的資訊。 再使用指令如 getDate()、ge...

ubuntu 18.04  apache 目錄啟用並開啟.htaccess 覆寫

ubuntu 18.04 ...

.htaccess是在Apache HTTP Server這款服務器架設軟件下的一個對於系統目錄進行...

javascript change css class

javascript cha...

javascript 使用classList是一個方便的替代方法,可以將元素的類列表作為空格分隔的字...

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