Editing the Command Line
You can reexecute any event in the history list. This feature can save you time, effort, and aggravation. Not having to reenter long command lines allows you to reexecute events more easily, quickly, and accurately than you could if you had to retype the entire command line. You can recall, modify, and reexecute previously executed events in three ways: You can use the fc builtin (covered next); the Readline Library, which uses a one-line vi- or emacs-like editor to edit and execute events (page 598); or the TC Shell commands (page 594). If you are more familiar with vi or emacs and less familiar with the TC Shell, use fc or the Readline Library. If you are more familiar with the TC Shell and less familiar with vi and ...
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.
Read now
Unlock full access