Home > Articles > Other IT Certifications

Basic vi Skills for the Linux LPIC Exams

  • Print
  • + Share This
With an eye towards passing the LPIC I exam, this chapter will help you prepare and practice your basic vi skills with sample questions and detailed answers.
This chapter is from the book

Terms you'll need to understand:

  • Command mode

  • Insert mode

  • LastLine mode

  • Message line

  • Named buffers

  • The Unnamed buffer

Techniques you'll need to master:

  • Opening a file for editing

  • Saving and exiting files

  • Searching for text, including ranges and regular expressions

  • Navigating within a file, including using the H, J, K, and L keys

  • Searching and replacing text using different methods

  • Setting, unsetting, and displaying options for vi

  • Executing commands within vi

  • Performing advanced editing functions


The LPI exams focus on vi as the default editor for Linux. No matter how much you think emacs rocks, or that pico/nano is much easier to use with the onscreen menus, it's essential that you have basic vi skills.

  • + Share This
  • 🔖 Save To Your Account