How to create empty file in Linux

You can create an empty file in Linux using the touch command or by using a text editor. Here’s the general process for creating an empty file in Linux: Using touch: You can create an empty file using the touch command and specify the name of the file as an argument: touch [file-name] For example, … Read more

How To Patch and Protect Linux Kernel Zero Day Local Privilege Escalation Vulnerability CVE-2016-5195 [ 21/Oct/2016 ]

To patch and protect the Linux kernel Zero Day Local Privilege Escalation Vulnerability (CVE-2016-5195) from Oct 21, 2016, follow these steps: Check your kernel version: uname -r Update your system: sudo apt-get update && sudo apt-get upgrade Install the latest security patches: sudo apt-get dist-upgrade Reboot your system: sudo reboot Note: The above steps are … Read more

How to check Ansible version on Linux/Unix

To check the version of Ansible installed on a Linux or Unix system, use the following command: ansible –version The output will show the version number, for example: ansible 2.9.13 config file = None configured module search path = [‘/home/user/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’] ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible executable location = /usr/local/bin/ansible python version = 3.8.7 … Read more

How to install PHP 7 on Debian Linux 8.x/7.x [jessie/wheezy]

To install PHP 7 on Debian Linux 8.x/7.x (jessie/wheezy), follow these steps: Add the package repository for PHP 7: sudo apt-get install apt-transport-https lsb-release ca-certificates sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” | sudo tee /etc/apt/sources.list.d/php.list Update the package list: sudo apt-get update Install PHP 7 and related modules: sudo apt-get … Read more