As you already know, the following cd command example will display all the available directories that begin with lower-case m.
# cd m may myticket
Note: You have to press tab key twice after ‘m’
In the same way, the following cd command example will display all the available directories that begin with upper-case M.
# cd M March Music
Display both upper-case and lower-case
If you like to display both lower-case and upper-case directory names (Even when you give only lower-case), execute the following bind command.
# bind "set completion-ignore-case on"
Now, if you press two tabs after the lower-case alphabets in the cd-command argument, it will automatically display both lower-case and upper-case directories as shown below.
# cd m March may Music myticket
Comments on this entry are closed.
simple and good explanation. Thanks
This post is about insensitivity in tab-completion (in an unspecified shell), not about arguments to cd.
I was hoping to be able to learn how I can cd into ./Foo by typing “cd foo”