觉得 BASH 中的 TAB 键还不够好!

觉得 BASH 中的 TAB 键还不够好!

[先声明, 我也觉得这个话题放在这个板块不太合适, 可是又找不到更合适的板块, 所以各位体谅一下帮帮忙拉~~~~ ]

BASH 的 TAB 键只提供最大可能的补全文件名的功能,但是有很多时候还是需要自己输入文件名的大部分字符, 那么如果文件名中有无法或者很难输入的字符怎么办???

比如我在当前目录下有两个文件, 它们的名字除了一个字符其他完全一样! 比如 111A111.txt 和 111B111.txt, 但恰恰是这个字符无法输入(比如那些怪字符,韩文字符,日文字符,或者不知道拼音的中文字 ....), 当我输入 111 再按 TAB 键将没有任何反应, 此时如何简单并唯一地确定两个文件中的一个呢?(总不见得这么小的事情还要编一大堆程序吧???)

BASH 的 TAB 能否象 XP/2000 的 CMD 中的 TAB 那样, 依次遍历所有可能的文件名让你选择呢? 或者 BASH 还有更好的解决方法?

谢谢!!!      
first run ls to list all the files then copy and paste the file name to the command line       
谢谢楼上的,可是怎么才能在纯字符方式copy和paste? 用什么快捷键?
我只会在X下的xterm里copy/paste,因为有鼠标.

不好意思,我是新手      
1. please refer to gpm's man page
2. 新手怎么了? 怎么新手都这么理直气壮的? 人无贵贱, 手无新旧.       
Firstly:NO ARROGANCE was meant in my reply!!!

Secondly:     Your solution is not so good as showed in BASH's Manpage. PLZ refer to it for details!!!      
1. dont get me wrong. i was kidding.
2. do u mean "menu-complete"? really, it's good. but i dont like the way it works.
3. have u ever tried screen? it's very cool.      
[QUOTE]do u mean "menu-complete"? really, it's good. but i dont like the way it works. [/QUOTE]
Yup, that's what i mean , You're quite adept in shelling.

still some questions:
1. what do you mean by screen?
2. can i bind windows-key to a certain command in readline? HOW?
3. what the hell does something like "\e[11~" (which appears so many times in .inputrc file) really  mean? Just the key sequence of "Escape [ 1 1 ~" (if so, i think it's too long to be a SHORTcutkey) or does it have a special meaning (like \n means carriage-return)?

It seems I'm now deeply buried in questions, PLZ help me out!        
复制内容到剪贴板
代码:
SCREEN(1)                                                            SCREEN(1)

NAME
       screen - screen manager with VT100/ANSI terminal emulation

SYNOPSIS
       screen [ -options ] [ cmd [ args ] ]
       screen -r [[pid.]tty[.host]]
       screen -r sessionowner/[[pid.]tty[.host]]

DESCRIPTION
       [color=red]Screen is a full-screen window manager that multiplexes a physical ter-
       minal between several processes (typically interactive  shells)[/color].   Each
       virtual terminal provides the functions of a DEC VT100 terminal and, in
       addition, several control functions from the ISO 6429  (ECMA  48,  ANSI
       X3.64)  and ISO 2022 standards (e.g. insert/delete line and support for
       multiple character sets). [color=red] There is a  scrollback  history  buffer  for
       each virtual terminal and a copy-and-paste mechanism that allows moving
       text regions between windows.[/color]
      
1. i dont know what do u mean by "windows-key". MS windows?
2. in inputrc "\e" means the ESC key, "\n" means CR, "\C-x" means <ctrl-x>, ...
3. some pre-defined key-bindings in inputrc are really too long! anyway, u can change it.       
I'd appreciate your quick reply.

windows-key is the key between left/right-ctrl and left/right-alt

And here's something more: why can't i find some most-used definitions (TAB:complete for example) in the inputrc file? So how can i just unbind TAB (that means TAB does nothing anymore) in inputrc? i dont want to use bind -u or bind -r everytime.