"When you are working in a shell you certainly don’t want to waste your time using arrow keys or home/end keys to navigate around the command line. One of the most popular shells, bash - Bourne Again SHell, uses GNU’s Readline library for reading the command line. The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in. The readline library also includes functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those lines, and perform csh-like history expansion on previous commands. Both emacs and vi editing modes are available. I have mastered both of the editing modes and have created cheat sheets for both of them (and a tiny separate one for readline’s history expansion).

This is a cheat sheet for the default, emacs, editing mode. Here are a few examples with screenshots on how to use this editing mode..."

Full story »
can.axis's picture
Created by can.axis 9 years 32 weeks ago
Category: Beginner   Tags: