ARCHIVED: In Emacs and Pico, how do I delete many lines of a document at once?

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

To delete many lines from a document at once, follow the appropriate instructions below:

Emacs

  1. Move your cursor directly before the region you want to delete. Set a mark by pressing C-@ or C-Spacebar.
  2. Move the cursor to the end of the region you want to delete and press C-w.

Note: If you aren't sure how to enter these commands in Emacs, see How keystrokes are denoted in Emacs

Pico

  1. Move your cursor directly before the region you want to delete. Set a mark by pressing Ctrl-6 or Ctrl-^.
  2. Move the cursor to the end of the region you want to delete and press Ctrl-k.

At Indiana University, for personal or departmental Linux or Unix systems support, see Get help for Linux or Unix at IU.

This is document abhi in the Knowledge Base.
Last modified on 2018-01-18 10:47:21.