Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • If the output (or lack of it) of lsof is to be believed and my understanding is correct, less opens a file but emacs does not. Strange. Commented May 25, 2011 at 19:12
  • 7
    I think that editors just open and read the file to the memory and close it. After that they only monitor file for changes (like vim). Commented May 25, 2011 at 19:27
  • The column that says r would be different if it were writing it. Commented May 25, 2011 at 20:04
  • 3
    Lukasz is correct; if you use inotify -m /tmp/file you can see that both vim and nano open, read/write to the file and close it immediately. Commented May 26, 2011 at 0:43
  • Vim opens a buffer in memory and writes to a file on save, emacs is similar i believe. Commented Jul 13, 2011 at 8:08