Frequent Question: How Do I Save a File in Ubuntu?
Contents What Is the Command to Save a File in Linux? to Save a File, You Must First Be in Command Mode. Press Esc to Enter Command Mode, and Then Type: Wq to...
Contents
What is the command to save a file in Linux?
To save a file, you must first be in Command mode. Press Esc to enter Command mode, and then type :wq to write and quit the file.
…
More Linux resources.
| Command | Purpose |
|---|---|
| $ vi <filename> | Open or edit a file. |
| i | Switch to Insert mode. |
| Esc | Switch to Command mode. |
| :w | Save and continue editing. |
Must Read
How do I save and create a file in Ubuntu?
To create a new file run the cat command followed by the redirection operator > and the name of the file you want to create. Press Enter type the text and once you are done press the CRTL+D to save the files.