User Tools

Site Tools


deptlab:cs101:cli_nano

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
deptlab:cs101:cli_nano [2020/10/23 16:17] – [Introduction to the nano Text Editor] localadmindeptlab:cs101:cli_nano [2021/09/01 13:31] (current) – [Editing with Nano] localadmin
Line 1: Line 1:
-====== Introduction to the nano Text Editor ======+====== Introduction to the Nano Text Editor ======
  
-Nano is an easy-to-use terminal based text editor that's both simple and versatile. Nano is available on all CS department Linux lab and research computers. It's a clone of the old Pico.+Nano is an easy-to-use terminal based text editor that's both simple and versatile. Nano is available on all CS department Linux lab and research computers. It's a clone of the old Pico editor.
  
 There are other command line text editors available such as Vim and Emacs but I recommend Nano as the easiest to learn. Some people recommend Vim and you can [[http://letmegooglethat.com/?q=How+to+use+vim|Google how to use Vim]] if you want. There are other command line text editors available such as Vim and Emacs but I recommend Nano as the easiest to learn. Some people recommend Vim and you can [[http://letmegooglethat.com/?q=How+to+use+vim|Google how to use Vim]] if you want.
 ===== Running Nano ===== ===== Running Nano =====
  
-Nano is a command line text editor so open a terminal.  In the CS Department's Linux lab you can find MATE Terminal in the upper left menu under Applications --> System Tools.+Nano is a command line text editor so you need to open a terminal. In the CS Department's Linux lab you can find MATE Terminal in the upper left menu under Applications --> System Tools.
  
 {{:deptlab:cs101:mate_terminal.png?direct&600|}} {{:deptlab:cs101:mate_terminal.png?direct&600|}}
  
-Starting Nano is easy.+From the terminal command prompt, starting Nano is easy.
   nano /path/to/filename   nano /path/to/filename
  
Line 24: Line 24:
  
 ** Ignore the top top lines which are part of the terminal and not the Nano editor** ** Ignore the top top lines which are part of the terminal and not the Nano editor**
 +
 +These lines will be different, or non existant, depending on the terminal used.
  
 {{:deptlab:cs101:nano_ignore.png?600|This is NOT part of the Nano Editor}} {{:deptlab:cs101:nano_ignore.png?600|This is NOT part of the Nano Editor}}
Line 39: Line 41:
 Nano is a WYSIWYG editor; “what you see is what you get.” What you type directly goes into the text input, unless you modify it with a key like Control or Meta. It’s pretty simple, so type some text out, or copy something and paste it into your terminal.  Nano is a WYSIWYG editor; “what you see is what you get.” What you type directly goes into the text input, unless you modify it with a key like Control or Meta. It’s pretty simple, so type some text out, or copy something and paste it into your terminal. 
  
-**Note:** As with many programs, copying text from Microsoft Products can induce unexpected characters so watch what you paste+**Note:** As with many programs, copying text from Microsoft Products can induce unexpected characters so watch what you paste. Quotes and emdashs (—) are often problematic so watch those. 
  
-{{:deptlab:cs101:nano_text.png?direct&600|Beowulf is a 1000 year old Nordic poem.}} +{{:deptlab:cs101:nano_text.png?direct&600|Beowulf is a 1,000 year old Nordic poem. You should read it. https://www.bl.uk/collection-items/beowulf}} 
  
  
Line 114: Line 116:
 The previous search term appears in the square brackets, and leaving the line blank and hitting Enter will repeat that last search. The previous search term appears in the square brackets, and leaving the line blank and hitting Enter will repeat that last search.
  
-{{:deptlab:cs101:nano_search.png?direct&600|}}+{{:deptlab:cs101:nano_search.png?direct&600|Lorem Ipsum is the dummy text of the printing and typesetting industry.}}
  
  
 ==== Exiting Nano ==== ==== Exiting Nano ====
  
-Use Ctrl+X to exit Nano+Use Ctrl+X to exit Nano
 + 
 +Type exit to close a terminal.
deptlab/cs101/cli_nano.1603487832.txt.gz · Last modified: 2020/10/23 16:17 by localadmin