nano editor in linux shell

nano is a basic text editor in Linux. Main features of nano are given below.
  • very easy and short learning curve
  • shortcuts to important actions are given at the bottom of editor
  • very easy for someone coming from windows background
The drawback of nano is that it does not provide syntax highlighting and many other features available in vim. To start the nano editor from shell, you can execute below command.
nano filename+

Then you can start editing the file. We do not have insert and command modes (available in vim) in nano. Here are some of the shortcuts in nano.
  • Ctrl + o – To save the file you can use ctrl+o hotkey.
  • Ctrl + x – This hotkey is used to exit the nano editor.
  • Ctrl + w – This hotkey is used to find the text in a file in nano editor.
  • Ctrl + r – load the specified file in nano
  • Alt + k – Select the text
  • Ctrl + k – Cut the text
  • Ctrl + u – Paste the selected text
  • Alt + / – This hot key can be used to go to the end of file
  • Ctrl + a – This hot key can be used to go to the beginning of current line
  • Ctrl + e – This hot key can be used to go to the end of current line
  • Ctrl + c – shows current position of the cursor like line number, column number etc
  • Ctrl – (dash) – This command will let you jump to specific line number in a file
  • Ctrl + w – Allows you to find the text in a file. To find the next occurrence, you can use Alt + w command.

Web development and Automation testing

solutions delivered!!