O'Reilly logo

Linux® Desk Reference, Second Edition by Scott Hawkins

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

Line Ranges

Many of the commands specified next can be applied to a range of lines, rather than the whole file. To specify a line range;

  1. Get into command mode.

  2. Type a colon.

  3. Type a start line, an optional comma, and a stop line.

This chapter is broken up into the following sections:

Title of the Section What It Really Means
Just Enough to Get By Quick start for beginners.
Starting and Stopping vi What it sounds like.
Position within a File Scrolling and motion.
Searching and Replacing Also includes pattern matching examples.
Adding and Deleting Text Invoking edit mode, also deleting.
Yanking and Putting Not unlike copy & paste.
Shell Interaction Shell functions available in an edit session.

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