How Do You Close a File in Linux?
Contents to Close a File to Which No Changes Have Been Made, Hit Esc (The Esc Key, Which Is Located in the Upper Left Hand Corner of the Keyboard), Then Type...
To close a file to which no changes have been made, hit ESC (the Esc key, which is located in the upper left hand corner of the keyboard), then type :q (a colon followed by a lower case “q”) and finally press ENTER.
How do you close a file in Linux terminal?
Press the [Esc] key and type Shift + Z Z to save and exit or type Shift+ Z Q to exit without saving the changes made to the file.
Must Read
How do you close a file?
When you want to close a file quickly, click on the close icon in the document tab. You may also use the Close icon in the main tool bar, or the File → Close (Ctrl-W) menu item. If the file is unchanged, it is merely closed.