What is the difference between ZZ and :wq commands?

Answer Posted / stan reichardt

ZZ will quit the file, it will only save the file if there
have been changes to it. Therefore the timestamp on the
file will only change if there have been changes.

The ":wq" will save the file with or without any changes
being made. Therefore the timestamp wil always be changed.

Is This Answer Correct ?    29 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the command used to append to buffer?

2084


HOW WE CAN MAKE THE DLIEVERY WHICH IS BLOCKED DUE TO CREDIT LIMIT.

2380