B_DL,

ZZ

slapchop,

:x

backhdlp,
@backhdlp@lemmy.blahaj.zone avatar

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

raptir,

If anything it is dangerous as it will still exit even if changes cannot be saved.

DocMcStuffin,
@DocMcStuffin@lemmy.world avatar

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.

backhdlp,
@backhdlp@lemmy.blahaj.zone avatar

wait people care about the mtime?

carcus,

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxmemes@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #