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

How to remove hidden files in Linux

n Linux, hidden files are files that begin with a dot (.) character. To remove hidden files in Linux, you can use the rm command with the -r flag to recursively remove the files and the -f flag to force removal. Here is an example command that removes all hidden files in the current directory: … Read more

How to install and setup PostgreSQL on RHEL 8

To install and set up PostgreSQL on RHEL 8, you can follow these steps: Enable the PostgreSQL repository by running: sudo dnf install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm Install the PostgreSQL server package by running: sudo dnf install postgresql12-server Initialize the database by running: sudo /usr/pgsql-12/bin/postgresql-12-setup initdb Start and enable the PostgreSQL service by running: sudo systemctl start postgresql-12 … Read more