Commands used in Linux Nano Editor
When I use the Linux Nano editor, I will post the commands here to share with others who are just getting into Linux and using Nano.
I will try to add information for what each command does, or will link to a web page that explains it.
[Linux Nano Commands]- Make the mouse active every time you open Nano.
This will let you use the mouse wheel to scroll the page.
This will also let you click anywhere and start editing that section.
-- Open the following new file with Nano
nano ~/.nanorc
-- Add this to it and save.
set mouse - To open a file in Nano.
nano myfile.txt
nano /etc/myfile.txt - When you open a file in Nano, and need to scroll down to the bottom.
If the file is very large, the best way to get to the bottom of the file is to jump to it.
Use the following command to jump to the bottom of the Nano editor.
Alt + / - To paste content into Nano.
SHIFT + INSERT / SHIFT + INS - To copy content from Nano.
Alt + 6 - To undo something.
Ctrl + U - To select a section of text in Nano.
Shift + Mouse Drag - To select a large section of text in Nano that causes you to scroll down or up, you will need to set Marks. Select the area, and set the beginning mark.
Ctrl + 6
Scroll down or up until you have the entire selection selected. - To copy the text.
Alt + 6 - To cut the text.
Ctrl + K - To get out of the Mark, simply rerun the command.
Ctrl + 6 - To remove all the text from where the cursor is to the end of the file.
Alt + Shift + T / Alt + T