Friendly command script

Hi,

I need a unix script to help my students using unix and will make it more friedly with them.

The script will do something like that, when a user writes a letter, then it will be apeared to the screen the available commands or files that fit to the spesific letter that the user gives.

For a example,

when you write the letter `m`, the result will apear to the screen is all the commands that start with letter m. make makdir,mv and etc. Or the files in the spesific folder that start with letter �m�.

If you have anything that will help with this tell me pls.

Thank you

HP-UX has keysh. From the man page...

tcsh also has stuff like this. You need to do:
set autolist
for all of it to work. Let's say that "make" is the only command on my path that starts with "ma". I could type "ma" <tab> and I would see "make" on my screen. If I had "make" and "mail" as the only two commands that start with "ma", I could type "ma" ^D and I would see those two programs. This assumes that control-D is my EOF character. There is more info on the tcsh man page.