Monday, November 11, 2019

Nano

Pico text editor

What is Pico..

  • Pico is a linux-terminal based text editor.
  • Pico is a simple and easy-to-use text editor
  • It offering paragraph justification, cut/paste, and a spelling checker.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Nano text editor

What is Nano..

  • Nano is a simple linux-terminal based text editor.
  • Nano is used to making small changes to existing files or write a short text files.
  • It was originally created as a free replacement for the non-free Pico editor.
  • Nano was created in 1999 with name TIP by Chris Allegretta.
  • The name "TIP" was changed to "Nano" in 10th January 2000.
  • Nano was developed in C language
  • Nano is mostly using with keyboard short cut keys
  • We can use mouse in nano text editor.
Interface of Nano
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Installing Nano text editor

  • Nano text editor is pre-installed on macOS and most Linux distros.
  • Instaling in Ubuntu
    • sudo apt install nano



Basic Nano text editor commands

  • Start nano from terminal
    • nano
  • Open a existing text file or create a new file
    • nano <file name>
Note  :  If you open existing file make sure you are in that file's directory
  • View most recently used commands
    • nano .bash_history
Note  :  Make sure you are in home directory

Nano text editor keyboard shortcuts

Note  :  Symbol of Ctrl key is ^ and symbol of Alt key is m

Open,Save and Close files

  • Open a file
    • nano <filename with extension
  • Save a file
    • Ctrl+O
  • Open a file with read command
    • Ctrl+R
  • Back to terminal(exit nano)
    • Ctrl+X
  • Show all commands use in nano
    • Ctrl+G
  • Search text in nano
    • Ctrl+W
  • Next match of search results
    • Alt+W
  • Use nano's built-in file browser
    • Ctrl+T

Edit files

  • Turn on selection mode to select text
    • Alt+A
  • Turn off selection mode
    • Ctrl+6
  • Copy text
    • Alt+6
  • Cut text
    • Ctrl+K
  • Paste text
    • Ctrl+U
  • Replace text
    • Ctrl+\
  • Show cursor position
    • Ctrl+C
  • Go to a specific line
    • Ctrl+T

Common Commands

  • Move to the previous screen
    • Ctrl+Y
  • Move the next screen
    • Ctrl+V
  • Go to line and column number
    • Ctrl+_
  • Move forward one word
    • Ctrl+space
  • Move back one word
    • Alt+space
  • Move to the staring point of the current line
    • Ctrl+A
  • Move to the ending point of the current line
    • Ctrl+E
  • Insert the new line
    • Ctrl+M
  • Delete the character under the cursor
    • Ctrl+D
  • Delete the character left of the cursor
    • Ctrl+H
  • Mouse support enable/disable
    • Alt+M
Note  :  For more commands you want to know click here

No comments:

Post a Comment