What commands would quit a vi session without saving changes to the file?

1 answer

Answer

1231493

2026-08-18 00:40

+ Follow

To quit a vi session without saving any changes, you use the the same quit command, but append an exclamation point. So:

:q!

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.