O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. Using vi to Edit a Text File

Steve “Mor” Moritsugu

  • Ways to insert text

  • Ways to move within the document

  • Ways to delete text

  • Ways to change text

Tip for Beginners

Every UNIX user should know the basics of how to edit text files using vi, because vi is the only editor that is standard on all UNIX systems. While vi has more than 75 separate commands, you can edit anything if you learn just the first 10 commands this chapter give you. This chapter covers all the basics of vi. The next chapter shows how to use these basics to automate repetitive editing tasks that can make you far more productive than using a mouse.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required