2026-08-09
Selecting...
Home Page
reload
Search in this channel...
Punch card
Raw Text (irssi format)
Fork on github
switch to admin mode
Jump to...
redirecting...
Log for
Ubuntu 台灣社群
pm 07:53:33
parousia1337A80@tg
請問一下,為什麼使用 gedit 或 vim 修改檔案,inode 會更改?
pm 07:56:26
parousia1337A80@tg
啊,還有 sed 也會
pm 07:57:20
小喵 🐈
inode 是指 extX 的那個嗎?
pm 07:58:12
parousia1337A80@tg
對
pm 07:59:36
parousia1337A80@tg
啊,找到原因了。原因是編輯時會產生一個暫存檔,儲存時會把暫存檔直接取代原檔案。
pm 08:00:45
小喵 🐈
https://unix.stackexchange.com/questions/36467/why-inode-value-changes-when-we-edit-in-vi-editor
pm 08:01:00
小喵 🐈
這邊也有詳細說明
created by
mmis1000
and release under
MIT License
GitHub Repo