Basic File Editing in Vim

15 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Vim is a powerful text editor known for its complex nature, but that doesn’t mean the way you use it always has to be complicated. When you need to read, navigate, and make simple updates to a file, Vim can be the perfect choice, too.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Update app.js in Vim

Change the instance of todo in the last line to read app.

Update server.js in Vim

Change the existing port 8080 in the server.js file so that it is set to 80 instead. Update both instances of the port.

Additional Resources

You are a system administrator troubleshooting an issue with an application (located at /home/cloud_user/app/). You have discovered that the issue lies in the app.js file—the last line should call app, not todo.

Make this change. Then, update the server.js file so the app can be tested on port 80. Save and exit.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?