Skip to Main Content
Linux in a Nutshell, Fourth Edition
book

Linux in a Nutshell, Fourth Edition

by Ellen Siever, Stephen Figgins, Aaron Weber
June 2003
Beginner to intermediate content levelBeginner to intermediate
944 pages
43h 1m
English
O'Reilly Media, Inc.
Content preview from Linux in a Nutshell, Fourth Edition

Edit Commands

Recall that c, d, and y are the basic editing operators.

Inserting New Text

Command

Action

a

Append after cursor.

A

Append to end of line.

i

Insert before cursor.

I

Insert at first nonblank character of line.

gI

Insert at beginning of line. {vim}

o

Open a line below cursor.

O

Open a line above cursor.

Esc

Terminate insert mode.

The following commands work in insert mode.

Command

Action

Tab

Insert a tab.

Backspace

Delete previous character.

Ctrl-E

Insert character found just below cursor. {vim}

Ctrl-Y

Insert character found just above cursor. {vim}

Ctrl-H

Delete previous character (same as Backspace).

Delete

Delete current character.

Ctrl-W

Delete previous word. {vim}

Ctrl-A

Repeat last insertion. {vim}

Ctrl-I

Insert a tab.

Ctrl-N

Insert next completion of the pattern to the left of the cursor. {vim}

Ctrl-P

Insert previous completion of the pattern to the left of the cursor. {vim}

Ctrl-T

Shift line right to next shift width. {vim}

Ctrl-D

Shift line left to previous shift width. {vim}

Ctrl-U

Delete current line.

Ctrl-V

Insert next character verbatim.

Ctrl-[

Terminate insert mode.

Some of the control characters listed in the previous table are set by stty. Your terminal settings may differ.

Changing and Deleting Text

The following table is not exhaustive, but illustrates the most common operations.

Command

Action

cw

Change through end of current word.

cc

Change line.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux in a Nutshell, 6th Edition

Linux in a Nutshell, 6th Edition

Ellen Siever, Stephen Figgins, Robert Love, Arnold Robbins
Linux in Action

Linux in Action

David Clinton
Hands-On System Programming with Linux

Hands-On System Programming with Linux

Kaiwan N. Billimoria, Tigran Aivazian
Embedded Linux for Developers

Embedded Linux for Developers

Alexandru Vaduva, Alex González, Chris Simmonds

Publisher Resources

ISBN: 0596004826