• meow
    link
    fedilink
    221 year ago

    you don’t need the ! when you have the w, because your changes already get saved.

    • @DocMcStuffin
      link
      61 year ago

      Try editing a file in /etc as a regular user. It happens sometimes and you really want that warning that the write failed.

      Anyway, :x is superior. It only writes if there are changes. So, your mtime doesn’t change unnecessarily.

        • @[email protected]
          link
          fedilink
          English
          41 year ago

          I’ve had to do forensics on a rogue change. In finding when and who actually changed the file, mtime can help narrow it down when compared with wtmp.