Best Answer: What Is the Save Command in Linux?

Best Answer: What Is the Save Command in Linux?
Contents
Command Purpose
:wq or ZZ Save and quit/exit vi.
:q! Quit vi and do not save changes.
yy Yank (copy a line of text).

What is the Save command in Unix?

bold

:w save changes (i.e., write) to your file
:q! quit without saving changes
:wq or ZZ save changes to file and then qui
:! cmd execute a single command (cmd) and return to vi
:sh start up a new UNIX shell – to return to Vi from the shell, type exit or Ctrl-d

How do I save changes in Linux terminal?

2 Answers

  1. Press Ctrl + X or F2 to Exit. You will then be asked if you want to save.
  2. Press Ctrl + O or F3 and Ctrl + X or F2 for Save and Exit.
Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.