1 / 9

HPC workshop – Introductory Session nano editor

October 24 , 2013. HPC workshop – Introductory Session nano editor. Creating and Opening Files Save and Exit Navigation Shortcuts Copying, Cutting and Pasting Searching and Replacing More Information Tutorials. Outline. Basics. N ew or existing files # nano

efuru
Download Presentation

HPC workshop – Introductory Session nano editor

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. October 24, 2013 HPC workshop – Introductory Session nano editor

  2. Creating and Opening Files • Save and Exit • Navigation • Shortcuts • Copying, Cutting and Pasting • Searching and Replacing • More Information • Tutorials Outline

  3. Basics

  4. New or existing files • # nano • Type your text, WYSIWYG • Ctrl+O to save, enter filename, Ctrl+X to exit • # nano /nethome/pdavila/example.txt • Configuration files • # nano-w~/.nanorc • It is very important that you use the -w switch when opening a configfile! • Hold Alt, press L (M-L) to toggle Line Wrapping Opening and creating files

  5. Basic ways to move the cursor • Home, End, Page Up, Page Down, and the arrow keys • Shortcuts • Ctrl+A, Ctrl+E (Home, End) • Ctrl+Y,Ctrl+V (Page Up, Page Down) • Ctr+F, Ctrl+B (move cursor forward, backward) • Ctrl+P, Ctrl+N (move cursor up, down one line) Navigation

  6. Shortcuts Note: Meta (M) is Alt key (pc), Esc key (mac)

  7. Copy, Cut and Paste a single line • Alt+6, Ctrl+K and Ctrl+U • Move multiple lines • Multiple Ctrl+K followed by on Ctrl+U • Highlighting • Ctrl+6 or Alt-A at beginning, move to end Copying, Cutting and Pasting

  8. Search • Ctrl+W, type string, press Enter. • Alt-W to search for the same string again • Replace • Ctrl-\, type string to search, type string to replace, confirm (Yes, No, All, Cancel) Searching and Replace

  9. More information

More Related