With bash
, I can complete a command with TAB. Normally, it should also complete the command line switches: e.g. when I typed:
java -
Depending on what Linux flavor you're using, you may want to add a package. For Fedora and related distributions, you need to add the separate package bash-completion
to get this to work. I wouldn't be surprised if other distributions had this packaged as an optional 2nd package that you need to add in addition to the bash
package.