Differences between current version and previous revision of BashHistory.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Saturday, April 21, 2007 11:00:03 am | by BenStaz | |
Older page: | version 2 | Last edited on Saturday, April 21, 2007 10:42:16 am | by BenStaz | Revert |
@@ -5,9 +5,9 @@
*echo "$HISTFILE"
As you probably already know, you can use the up and down arrow keys to cycle through the bash history, but you can also search it!
-To do so, press ''C-r''. You will be prompted for a search term. Start typing in part of the command you are trying to find. For example : if it was a [mplayer] command, start typing ''mplayer''. You will notice that as you type, the command from the bash history most closely
matching what you have typed will be displayed to you. When you see the one you are after simply press enter to execute that command.
+To do so, press ''C-r''. You will be prompted for a search term. Start typing in part of the command you are trying to find. For example : if it was a [mplayer] command, start typing ''mplayer''. You will notice that as you type, the most recent
command from the bash history matching what you have typed will be displayed to you. When you see the one you are after simply press enter to execute that command.
!List Bash History Commands
Use the ''fc'' command with the -l switch: