a - introduction and installation nano is a popular command line text-editor in Unix-Based OS It is open source and simple but yet powerful installation for Debian/Ubuntu sudo apt-get install nano installation for RHEL/Fedora sudo yum install nano nano filename → opens or creates the filename with nano or just nano and you specify the name on saving
b - search text and navigation CTRL + W → enter the value and press ENTER ALT + W → continue to search the same value CTRL + R → to find and replace after CTRL + W Press Y to replace one, or A to replace all instances use ↑, ↓, →, ← to move around within the document Ctrl + P | N |F | B → to move around within the document use Home and End to jump to the start and to the end of the line or Ctrl + A | E PgUp | Ctrl + Y and PgDn | Ctrl + V to move one page up or down
c - Edit, save and exit To select a text Alt + A and then with arrows select what you want Alt + 6 → to copy the selection to clipboard Ctrl + K → to cut the selection or cut the text to the end of the line Ctrl + U → to paste or cut the text to the start of the line Ctrl + Y → paste the cut with Ctrl + U Ctrl + O → save a file Ctrl + X → Exit nano Ctrl + G → Help menu