When using the Bash command line I can for example change to a directory using...
However I would like to type...
but that doesn't work. Is there a way to navigate directories using wildcards?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
As @William Pursell said, this is due to the folder being named /Volumes, not /volumes; the OS X filesystem is case insensitive, so it ignores the difference, but bash is case sensitive and trips over the difference.
But you can change bash's default behavior: to make it do case-insensitive expansions of file patterns, add the command
shopt -s nocaseglob to your ~/.bashrc and ~/.bash_profile files (it's needed in both, so the option is set in both login shells and subshells). If you also want filename completion to work despite case mismatches, either add
set completion-ignore-case on to your ~/.inputrc file, or add
bind "set completion-ignore-case on" to your ~/.bashrc and ~/.bash_profile files.