Making a file
Start a text editor such as emacs.
Type the contents of your file. When you are done, save the file using the key sequence Ctrl-x-Ctrl-s or the menu command File->Save Buffer.
If you did not supply a file name earlier, emacs will prompt you with the File to save in: message. Type a file name such as docbook-example02.sgml, then press Enter to save the file.