Tuesday, 12 November 2019

Nano text editor

I am Sasikumar. Welcome To My Page Nano
Nano is a text editor found in Ubuntu Terminal.

First we will see how to install nano text editor.
  • first open your terminal and type.
    • $ sudo apt-get install nano (type and press enter key)
 Did you finish installing? OK see how to open nano text editor
  • how to open nano text editor?
    • $ nano (type and press enter key)


This is your nano-interface
 
You can't use mouse point in nano.
If this is what it says. you want to use some shortcut keys.
well now let's see what those shortcut keys are.

How to save a file after you write it?
that is very simple.
Press Ctrl+O or F3
After Pressing Ctrl+O, you will be asked what name to save the file to. Enter the name you want to save and press enter button.

well you will saved your file successfully.
I understand your next question how to exit nano editor. Below is the answer for You
press Ctrl+X or F2
Next you forget some keys not a problem you have another option
press the Ctrl+G or F1 to get help option and learn all shortcut keys
Useful
keys
Ctrl and Alt key
Combination
Function key
Description
***
Ctrl+X
F2
Close the current file buffer / Exit from nano
***
Ctrl+O
F3
Write the current file to disk
***
Ctrl+J
F4
Justify the current paragraph
***
Ctrl+R
F5
Insert another file into the current one
***
Ctrl+W
F6
Search for a string or a regular expression
***
Ctrl+Y
F7
Move to the previous screen
***
Ctrl+V
F8
Move to the next screen
***
Ctrl+K
F9
Cut the current line and store it in the cutbuffer
***
Ctrl+U
F10
Uncut from the cutbuffer into the current line
***
Ctrl+C
F11
Display the position of the cursor
***
Ctrl+T
F12
Invoke the spell checker, if available
***
Ctrl+_
Alt+G
F13
Go to line and column number
***
Ctrl+/
Alt+R
F14
Replace a string or a regular expression
***
Ctrl+^
Alt+A
F15
Mark text at the cursor position
***
Alt+W
F16
Repeat last search
***
Alt+^
Alt+6
Copy the current line and store it in the cut-buffer
***
Alt+}
Indent the current line

Ctrl+M

Insert a newline at the cursor position

Ctrl+D

Delete the character under the cursor

Ctrl+H

Delete the character to the left of the cursor

Alt+T

Cut from the cursor position to the end of the file
***
Alt+J

Justify the entire file

Alt+D

Count the number of words, lines, and characters

Ctrl+L

Refresh (redraw) the current screen
***
Alt+X

Help mode enable/disable

Alt+C

Constant cursor position display enable/disable

Alt+O

Use of one more line for editing enable/disable

Alt+S

Smooth scrolling enable/disable

Alt+P

White-space display enable/disable

Alt+Y

Color syntax highlighting enable/disable

Alt+H

Smart home key enable/disable

Alt+I

Auto indent enable/disable
***
Alt+K

Cut to end enable/disable

Alt+L

Long line wrapping enable/disable

Alt+Q

Conversion of typed tabs to spaces enable/disable

Alt+B

Backup files enable/disable

Alt+F

Multiple file buffers enable/disable

Alt+}

Unindent the current line
***
Ctrl+F

Move forward one character
***
Ctrl+B

Move back one character

Ctrl+Space

Move forward one word

Alt+Space

Move back one word
***
Ctrl+P

Move to the previous line
***
Ctrl+N

Move to the next line

Ctrl+A
Home
Move to the beginning of the current line

Ctrl+E
End
Move to the end of the current line

Alt+(
Alt+9

Move to the beginning of the current paragraph

Alt+)
Alt+0

Move to the end of the current paragraph

Alt+/
Alt+|
Ctrl+End
Move to the first line of the file

Alt+?
Alt+\
Ctrl+Home
Move to the last line of the file

Alt+[

Move to the matching bracket

Alt+-
Alt+_

Scroll up one line without scrolling the cursor

Alt++
Alt+=

Scroll down one line without scrolling the cursor

Alt+<
Alt+,

Switch to the previous file buffer

Alt+>
Alt+.

Switch to the next file buffer

Alt+V

Insert the next keystroke verbatim

Ctrl+|

Insert a tab at the cursor position

Alt+M

Mouse support enable/disable

Alt+N

No conversion from DOS/Mac format enable/disable

Alt+Z

Suspension enable/disable

No comments:

Post a Comment

HTML

HTML HTML stands for H yper t ext M arkup L anguage, and it is the most widely used language to write Web Pages. Hypertext refers to ...