To add Bash auto completion in Red Hat Enterprise Linux (RHEL) 8, you can use the dnf install bash-completion command. This will install the bash-completion package, which provides support for auto completion in Bash.
Once the package is installed, you will need to enable it by adding the following line to your ~/.bashrc file:
source /usr/share/bash-completion/bash_completionSource:www.lautturi.com
After adding this line and saving the file, you can start a new Bash session or type source ~/.bashrc to enable auto completion. You can then use the tab key to automatically complete commands, options, and arguments.
Note: The instructions above are specific to RHEL 8. On other Linux distributions, the package name and installation instructions for Bash auto completion may be different.