Skip to Content
Linux in a Nutshell, 6th Edition
book

Linux in a Nutshell, 6th Edition

by Ellen Siever, Stephen Figgins, Robert Love, Arnold Robbins
September 2009
Beginner
942 pages
85h 34m
English
O'Reilly Media, Inc.
Content preview from Linux in a Nutshell, 6th Edition

Line-Edit Mode

Line-edit mode emulates many features of the vi and emacs editors. The history list is treated like a file. When the editor is invoked, you type editing keystrokes to move to the command line you want to execute. You can also change the line before executing it. When you’re ready to issue the command, press the Enter key.

Select an editor with either set -o vi or set -o emacs ; assignment to the VISUAL or EDITOR variables has no effect. Note that vi starts in input mode; to type a vi command, press the Escape key first.

Common editing keystrokes

vi

emacs

Result

k

Ctrl-P

Get previous command.

j

Ctrl-N

Get next command.

/ string

Ctrl-R string

Get previous command containing string.

h

Ctrl-B

Move back one character.

l

Ctrl-F

Move forward one character.

b

ESC-B

Move back one word.

w

ESC-F

Move forward one word.

X

DEL

Delete previous character.

x

Ctrl-D

Delete character under cursor.

dw

ESC-D

Delete word forward.

db

ESC-H

Delete word backward.

xp

Ctrl-R

Transpose two characters.

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

Unix in a Nutshell, 4th Edition

Unix in a Nutshell, 4th Edition

Arnold Robbins
Linux Under the Hood

Linux Under the Hood

Sander van Vugt
Linux Kernel in a Nutshell

Linux Kernel in a Nutshell

Greg Kroah-Hartman

Publisher Resources

ISBN: 9780596806088Errata Page