Tags:
create new tag
, view all tags
Bash -- (the Bourne Again SHell) -- a (command) shell (think of command.com in dos / Windows) for Linux. One of several available in Linux -- see CommandShells.

See AboutThesePages.

Contents

History Tidbits

Some other (bash?) keybindings (where do I find a complete list of these?):

  • <Ctrl>U: kill line
  • <Ctrl>L: form feed

from 8.4.2 Commands For Manipulating The History (modified only slightly, consider it a direct quote):

Return
accept-line: Accept the line regardless of where the cursor is. If this line is non-empty, add it to the history list according to the setting of the HISTCONTROL and HISTIGNORE variables. If this line is a modified history line, then restore the history line to its original state.

<Ctrl>p
previous-history: Move `back' through the history list, fetching the previous command.

<Ctrl>n
next-history: Move `forward' through the history list, fetching the next command.

<Alt><
beginning-of-history: Move to the first line in the history.

<Alt>>
end-of-history: Move to the end of the input history, i.e., the line currently being entered.

<Ctrl>r
reverse-search-history: Search backward starting at the current line and moving `up' through the history as necessary. This is an incremental search.

<Ctrl>s
forward-search-history: Search forward starting at the current line and moving `down' through the the history as necessary. This is an incremental search.

<Alt>p
non-incremental-reverse-search-history: Search backward starting at the current line and moving `up' through the history as necessary using a non-incremental search for a string supplied by the user.

<Alt>n
non-incremental-forward-search-history: Search forward starting at the current line and moving `down' through the the history as necessary using a non-incremental search for a string supplied by the user.

(unbound)
history-search-forward: Search forward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search. By default, this command is unbound.

(unbound)
history-search-backward: Search backward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search. By default, this command is unbound.

<Ctrl><Alt>y
yank-nth-arg: Insert the first argument to the previous command (usually the second word on the previous line) at point. With an argument n, insert the nth word from the previous command (the words in the previous command begin with word 0). A negative argument inserts the nth word from the end of the previous command.

<Alt>. or <Alt>_
yank-last-arg: Insert last argument to the previous command (the last word of the previous history entry). With an argument, behave exactly like yank-nth-arg. Successive calls to yank-last-arg move back through the history list, inserting the last argument of each line in turn.

Resources

See ResourceRecommendations. Feel free to add additional resources to these lists, but please follow the guidelines on ResourceRecommendations including ResourceRecommendations#Guidelines_for_Rating_Resources.

Recommended

  • (rhk) Bash Reference Manual; — seems like a decent reference: "This text is a brief description of the features that are present in the Bash shell."

Recommended for Specific Needs

This chapter describes how to use the GNU History Library interactively, from a user's standpoint. It should be considered a user's guide. For information on using the GNU History Library in other programs, see the GNU Readline Library Manual.

  • 9.1 Bash History Facilities: How Bash lets you manipulate your command history.
  • 9.2 Bash History Builtins: The Bash builtin commands that manipulate the command history.
  • 9.3 History Expansion: What it feels like using History as a user.

Contributors

  • () RandyKramer - 03 Aug 2002
  • <If you edit this page: add your name here; move this to the next line; and include your comment marker (initials), if you have created one, in parenthesis before your WikiName.>

Page Ratings

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2003-07-22 - RandyKramer
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiLearn? WebBottomBar">Send feedback
See TWiki's New Look