Home > Linux > Ubuntu console command completition

Ubuntu console command completition

July 10th, 2010
Adrian Elsener

Since I always have to search how to enable the history search in (k)ubuntu I post it here. I don’t know why this feature is disabled by default in (k)ubuntu. Imo it’s one of the greatest features under the linux term. Just start the command you entered last time in the term and then press the key ‘PageUp’ to get the last history entry you used the letters.

For everybody who wants to enable the feature too:
Open the file ‘/etc/inputrc’ and enable the following two lines: (It’s in the section ‘# alternate mappings for “page up” and “page down” to search the history’)
“\e[5~”: history-search-backward
“\e[6~”: history-search-forward

 

Linux , , , ,

  1. No comments yet.
  1. No trackbacks yet.