6

Tip #481   ESC-g for glob expansion in bash

Like <TAB> expands a filename given a prefix you can also expand a file name given the middle part of a file name using escape and then 'g'.

$ ls
abc1def  abc2def  abc3def  abc4def  abc5def
$ ls *2*<ESC>g


Which will expand to:

$ ls abc2def