How to extract a .deb file without opening it on Debian or Ubuntu Linux

You can extract the contents of a .deb package file without opening it on Debian or Ubuntu Linux using the dpkg-deb command line tool. The following command will extract the contents of a .deb package file named package.deb to the directory extracted_files: dpkg-deb -R package.deb extracted_files The -R option tells dpkg-deb to extract the contents … Read more

Ubuntu Linux Remove / Delete PPAs apt-get command

To remove or delete a Personal Package Archive (PPA) on Ubuntu Linux, you can use the following apt-get command: sudo add-apt-repository –remove ppa:<PPA_name> Replace <PPA_name> with the actual name of the PPA you want to remove. For example, to remove the ppa:webupd8team/java PPA, you would run the following command: sudo add-apt-repository –remove ppa:webupd8team/java After removing … Read more

How to enable bash command autocomplete on Alpine Linux

Bash command autocomplete can be enabled on Alpine Linux by installing the bash-completion package and adding the following line to the ~/.bashrc file: if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion fi Here are the steps to follow: Update the package list: apk update Install the bash-completion package: apk add bash-completion Add the above line … Read more

How to Check Amazon Linux Version (EC2 Instance)

To check the version of Amazon Linux installed on an EC2 instance, you can use the following command in the terminal: cat /etc/os-release This will display the version information, including the version number, in the output. For example: NAME=”Amazon Linux” VERSION=”2″ ID=”amzn” ID_LIKE=”centos rhel fedora” VERSION_ID=”2″ PRETTY_NAME=”Amazon Linux 2″ ANSI_COLOR=”0;33″ CPE_NAME=”cpe:2.3:o:amazon:amazon_linux:2″ HOME_URL=”https://amazonlinux.com/”

How to set and enable MariaDB slow query log

To enable and set up the slow query log in MariaDB, you need to modify the configuration file my.cnf and restart the MariaDB service. Here are the steps to enable the slow query log in MariaDB: Open the my.cnf configuration file: sudo nano /etc/my.cnf Add the following lines to the configuration file: [mysqld] slow_query_log = … Read more