How to add bash auto completion in Ubuntu Linux

Bash auto-completion is a feature that provides suggestions for commands and arguments as you type. To add bash auto-completion in Ubuntu Linux, you can use the following steps: Install the bash-completion package by running the following command: sudo apt-get install bash-completion This package contains the necessary files and scripts to enable bash auto-completion. Once the … Read more

Ubuntu upgrade or update a single package using apt-get

To upgrade or update a single package using apt-get on Ubuntu, you can use the following command: sudo apt-get install –only-upgrade package-name This command will update the specified package to the latest version available in the repositories. Alternatively, you can use the command sudo apt-get update package-name to update the package to the version available … Read more

Ubuntu 18.04 LTS change hostname permanently

To change the hostname of an Ubuntu 18.04 LTS system permanently, you can use the following steps: Open a terminal and run the following command to edit the “/etc/hostname” file: sudo nano /etc/hostname Replace the current hostname with the new hostname in the file and save the changes by pressing ctrl + x followed by … Read more

How to add bash auto completion in RHEL 8 (Red Hat Linux)

In Red Hat Enterprise Linux 8 (RHEL 8), bash auto-completion can be enabled by installing the “bash-completion” package. Here’s an overview of the steps you’ll need to take: Start by installing the “bash-completion” package by running the following command: sudo dnf install bash-completion Once the installation is complete, you can activate the bash completion feature … Read more