Bash programming/Bash command-line completion

Support for bash completion feature is provided in Debian and Ubuntu distribution by the  package. Once installed you also usually need to uncomment the following in  and/or   files to source the bash completion files. The following example is from :

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi
 * 1) enable bash completion in interactive shells

MacOS also support autocompletion in bash, create or add the following lines to file: set completion-ignore-case on set show-all-if-ambiguous on TAB: menu-complete If you need autocompletion for your ssh hostname, you should modify your  file, using the builtins   and   commands or install   package.