


Press Ctrl + x, and when prompted to save the modified content, press y and click enter. The second way to save the file is by exiting the file. Once the file is saved, you will see a success message “”. If you provide a name to the file, Nano will save a new file with the new name and the newly edited content. Nano will ask for the file’s name, so you can just hit enter. To save the file’s current workings, you can press Ctrl + O. There are two ways to save the text file. Once you have finished the document or if you have edited the document, save it and exit the editor. You can enter all the text you need immediately in the window. To create a text file using the nano command, enter the following (Note that instead of filename, enter the name of your file): To display the complete list of commands, you can press Ctrl + g. The ^ represents the Ctrl key, and M represents the Alt key. You will see a window similar to the one seen above.Īll commands are prefixed with either ^ or M character. Once Nano is installed, you can test it by entering the following command: For openSUSE, SUSE Linux and derivatives:.
COMMAND LINE TEXT EDITOR INSTALL
If you don’t have Nano installed on your system, you can install it using the following commands. In most cases, the Nano-text editor is pre-installed on macOS and most Linux distros. We will start the guide by installing and setting up Nano on your Linux system. A Linux VPS with your preferred operating system.In this tutorial, we will be using screenshots taken from Ubuntu 20.04. It has a simple and easy-to-use interface, and throughout this tutorial, we will cover all the basics (and a bit more) of using the nano text editor. You have the ability for syntax highlighting, editing text, multiple buffers, search and replace, spell checking and more. GNU nano is a command-line text editor made for Unix and Linux operating systems, including all the basic functionalities of a regular text editor.
