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 14:56] – [Running Nano] 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 simple and versatile. Nano is available on all CS dept lab and Linux research computers. | + | Nano is an easy-to-use terminal based text editor that' |
- | + | ||
+ | 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 ===== | ||
- | Starting | + | Nano is a command line text editor so you need to open a terminal. In the CS Department' |
+ | |||
+ | {{: | ||
+ | |||
+ | From the terminal command prompt, starting | ||
nano / | nano / | ||
Line 20: | Line 25: | ||
** 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. |
+ | |||
+ | {{: | ||
At the top, you’ll see the name of the program and version number, the name of the file you’re editing, and whether the file has been modified since it was last saved. If you have a new file that isn’t saved yet, you’ll see “New Buffer.” | At the top, you’ll see the name of the program and version number, the name of the file you’re editing, and whether the file has been modified since it was last saved. If you have a new file that isn’t saved yet, you’ll see “New Buffer.” | ||
Line 34: | 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 109: | 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.1603483018.txt.gz · Last modified: 2020/10/23 14:56 by localadmin