- Check if its installed
Syn: ~/Desktop/test
$ which nano
/usr/bin/nano
-
If we just type nano on the terminal we open nano on a buffer which means no file is selected
-
^O Write out
- Same as save. -
This will bring up the save dialog. We can give a file name and press enter.
-
File is created and saved in the current working directory if no specified location is set.
-
^G
- Help -
Start on line number 2 -
$ nano +2 nano-test.txt
-
View only mode -
$ nano -v nano-test.txt
-
Navigate to specific line -
^W -> ^T enter line#
^W Where is
- This is same as text search.
-
^K Cut
- Cuts entire line -
^U Paste
- Paste the line -
Copy :
- To select text, press the Ctrl + 6 key combination.
- You will see "Mark Set" appear at the bottom of the screen as an acknowledgement.
- Now, use the arrow keys (keys like Home, End, Page Up and Page Down can also be used) to select/highlight text.
- To copy selected text, press Alt + 6 key combination.
- Paste is
^U