To close a file in gedit, select File ▸ Close. Alternately, you can click the small "X" that appears on the right-side of the file's tab, or press Ctrl+W.
Any one of these actions will close a file in gedit. If your file contains changes that have not been saved, gedit will prompt you to save those changes before closing the file.
This work is licensed under a.
Got a comment? Spotted an error? Found the instructions unclear? Send feedback about this page.