Waffelson@lemmy.world to linuxmemes@lemmy.world · 11 months ago:wq!lemmy.worldimagemessage-square85fedilinkarrow-up1152arrow-down150
arrow-up1102arrow-down1image:wq!lemmy.worldWaffelson@lemmy.world to linuxmemes@lemmy.world · 11 months agomessage-square85fedilink
minus-squareMiku Luna \ she/it@lemmy.blahaj.zonelinkfedilinkarrow-up17·11 months agoyou don’t need the ! when you have the w, because your changes already get saved.
minus-squareraptir@lemdro.idlinkfedilinkEnglisharrow-up16·11 months agoIf anything it is dangerous as it will still exit even if changes cannot be saved.
minus-squareDocMcStuffin@lemmy.worldlinkfedilinkarrow-up3·11 months agoTry 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.
minus-squareMiku Luna \ she/it@lemmy.blahaj.zonelinkfedilinkarrow-up1·11 months agowait people care about the mtime?
you don’t need the
!
when you have thew
, because your changes already get saved.If anything it is dangerous as it will still exit even if changes cannot be saved.
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.wait people care about the mtime?