deptlab:cs101:cli_nano
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
deptlab:cs101:cli_nano [2020/10/23 16:17] – [Introduction to the nano Text Editor] localadmin | deptlab: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:// | 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:// | ||
===== Running Nano ===== | ===== Running Nano ===== | ||
- | Nano is a command line text editor so open a terminal. | + | Nano is a command line text editor so you need to open a terminal. In the CS Department' |
{{: | {{: | ||
- | Starting | + | From the terminal command prompt, starting |
nano / | nano / | ||
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. | ||
{{: | {{: | ||
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. |
- | {{: | + | {{: |
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. | ||
- | {{: | + | {{: |
==== 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