Penguin

Differences between version 2 and previous revision of BashHistory.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 2 Last edited on Saturday, April 21, 2007 10:42:16 am by BenStaz Revert
Older page: version 1 Last edited on Saturday, April 21, 2007 10:30:16 am by BenStaz Revert
@@ -3,9 +3,11 @@
 You can see which file bash history is being written to by doing: 
  
 *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. 
+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. 
  
 !List Bash History Commands 
  
 Use the ''fc'' command with the -l switch: