You're viewing a single thread.
All Comments
115 comments
you don't need the
!
when you have thew
, because your changes already get saved.22 0 ReplyIf anything it is dangerous as it will still exit even if changes cannot be saved.
18 0 ReplyTry 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.6 0 Replywait people care about the mtime?
4 0 ReplyI’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.
4 0 Reply
115 comments
Scroll to top