Open a file To open a text file in nano, change to the directory where the file is stored, type nano and pass the filename as an argument, ex. nano command-notes.txt Start typing The entire terminal screen will be taken over by the nano interface. You can start typing immediately and see your text appear in the main part of the window. Write as normal Everything will work as expected, including the Return key for a new line, and the Arrow keys to scroll when the file gets large enough. Keyboard shortcuts At the bottom are commonly used keyboard shortcuts. The ^ indicates that you need to press Ctrl at the same time as the letter. Note that WriteOut means save. Status messages Some shortcuts will result in a status message and a question being asked of you. Read the message, and respond according to the options presented below. Help screen Be sure to investigate the Ctrl+G option, which will provide a help screen with all the options available. Source:...

Ctrl+A – Move cursor to the beginning of the command line. Ctrl+C – End a running program and return the prompt, see Chapter 4. Ctrl+D – Log out of the current shell session, equal to typing exit or logout. Ctrl+E – Move cursor to the end of the command line. Ctrl+H – Generate backspace character. Ctrl+L – Clear this terminal. Ctrl+R – Search command history. Ctrl+Z – Suspend a program. ArrowLeft and ArrowRight – Move the cursor one place to the left or right on the command line, so that you can insert characters at other places than just at the beginning and the end. ArrowUp and ArrowDown – Browse history. Go to the line that you want to repeat, edit details if necessary, and press Enter to save time. Shift+PageUp and Shift+PageDown – Browse terminal buffer (to see text that has “scrolled off” the screen). Tab – Command or filename completion; when multiple choices are possible, the system will either signal with an audio or visual bell, or, if too many choices are possible, ask you if you want to see them all. Tab Tab – Shows file or command completion...