Is it possible to get reverse tab completion, so that you type the last characters in the filename you want, press tab (or whatever the reverse keystroke is), and get the full file name?<p>Sometimes I have files where the unique bit is at the end, and tab completion is useless for them. For example with these ---<p>version1.txt
version2.txt
version3.txt<p>--- I'd have to type out "version" before hitting tab, and what I'd like is to type 1.txt, hit tab, and have "version" prepended.
Shells like bash do wildcard expansion on tab keystroke. So you type<p><pre><code> cat version*.txt
</code></pre>
then tab and it expands that into<p><pre><code> cat version1.txt version2.txt version3.txt
</code></pre>
The same is of course true with any other kind of wildcard like<p><pre><code> *.tar.gz
</code></pre>
(is that what you mean with reverse tab completion?) And even ranges like "version{1..3}" and much more. Look up <a href="http://bash-hackers.org" rel="nofollow">http://bash-hackers.org</a>, the ultimate guide for shell globbing and other bash features.