Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction:

  • This

...

  • This workshop will introduce the basics on how to use the vim commandthe a number of text editors from the command-line text editor within a Linux environment. 

  • It will cover the basics on opening and updating a text file, how to navigate around the text, and how to search for terms. 

  • After the  After the workshop, participants will have the skills to use a text editor to create basic scripts. Participants are expected to have an introductory level of experience using Linux from the command line – such as that provided by the Intro to Linux workshop.

Course Goals:

  • To introduce users, using the Linux command line environment, to text editors: Specifically vim.Open.

    • The workshop introduces: Vim, Nano and Emacs.

  • Introduce basic functionality such as how to open, edit, update, save and quit a text editor.

  • Use the keyboard and shortcuts to navigate around the text file.Use

...

Note

Notes:

  • Participants are expected to have an introductory level of experience using Linux from the command line

...

01 Getting Started
02 Why do we need a Text Editor?
03 Other Text Editors

Nano
Emacs

01 Getting Started

Login (Skip if you’ve done this already)

  1. Open up Chrome

  2. Navigate to: MedicineBow OnDemand

  3. Type in your provided username and password. Usually this will be your UWYO username and password, unless you are using an assigned training account.

  4. Authenticate using your preferred 2 factor method (expandable directions below):

Expand
titleDuo Mobile push:

If you usually get a two-factor push to your phone, just hit enter after entering your username and password, then complete authentication by approving the push on your device.

pushapprove.pngImage Removed

Expand
titlePhone Call:

Without hitting enter after typing in your username and password, in the password text box, append a comma (,) to the end of your password, then append phone as shown in the screenshot below:

Image Removed

You should get a phone call on your main phone # associated with your two factor account. Answer this call and hit # to approve access.

Expand
titleDuo Passcode

If you prefer to use a 2 factor passcode from your Duo Mobile app, without hitting enter after typing in your username and password, in the password text box, append a comma (,) to the end of your password, then append the multi digit passcode found in duo mobile as shown in the screenshot below:

Image Removed
Expand
titleYubikey:

Type in the account password, then, without hitting enter, append a comma (,) to the end of the password, then touch the light on the yubikey as shown in the screenshot and photo below:

Image Removed

Then hit the green light on your yubikey to authenticate:

yubikey.jpegImage Removed

Start MedicineBow Shell Access

...

image-20240731-224939.pngImage Removed

...

Image Removed

02 Why do we need a Text Editor?

02.01: Using the Terminal/Command-Line

  • We have a non-GUI/non-Windows environment.

  • Unable to start a GUI/Window text-editor type application.

  • We’re using the command-line.

02.02: Available Text Editors

02.03: Why vim?

  • Considerations:

    • What’s available on the system you’re using?

    • Can you install other editors?

    • What is your personal choice?

    • Note: On our MedicineBow cluster, vi is an alias for vim – meaning if you start vi, vim will start.

  • – such as that provided by the Intro to Linux workshop.

  • This tutorial is available for download as a PDF here.

...

Sections

Text Editors: Introduction: Provide an introduction to why use a text editor.

Vim and Vim Tutor: Introduce Vim and how and why to use the vimtutor as a guided tool to learn how to use this text editor.

Other Text Editors: Nano and Emacs: Briefly introduce two other common and popular text editors available on the command-line in Linux.

Text Editors: Summary: Provide next steps and a summary of what the workshop has covered.

...

 

All Trainings

Trainings

Next

Available Text Editors: Introduction