HowTo: PHP Compare Two Text Strings

In PHP, you can compare two text strings using the equality operator == or the identity operator ===. The equality operator == performs a loose comparison of two values, which means that it performs type coercion. For example, if you compare a string to an integer, PHP will convert the string to an integer before … Read more

Linux / UNIX: Kill User Session

You can kill a user session in Linux or UNIX by using the pkill command. pkill is a command-line utility that sends signals to processes based on the process name or process ID. To kill a user session, you need to find the process ID of the user’s shell and then use pkill to send … Read more

Debian / Ubuntu Linux: Install KornShell (KSH)

You can install the KornShell (KSH) in a Debian or Ubuntu Linux system using the following steps: Open a terminal. Update the package list by running the following command: sudo apt-get update Install the ksh package by running the following command: sudo apt-get install ksh Once the installation is complete, you can check the installed … Read more

Linux Find Out My Machine Name/Hostname

To find out the hostname of a Linux machine, you can use the “hostname” command. Here’s an example: hostname This will print the hostname of the machine to the terminal. If you want to see the fully qualified domain name (FQDN), you can use the “hostname -f” command: hostname -f This will print the hostname … Read more

FATAL: Error inserting it87 (/lib/modules/2.6.32-5-686/kernel/drivers/hwmon/it87.ko): Device or resource busy

The error message “FATAL: Error inserting it87 (/lib/modules/2.6.32-5-686/kernel/drivers/hwmon/it87.ko): Device or resource busy” is indicating that the system is unable to load the it87 kernel module. This error is often caused by the module being in use by another device or process, or by a conflict with another module. To resolve the issue, you can try … Read more

Linux / Unix: Awk Print Variable

In the awk programming language, you can use the print statement to output the value of a variable. For example: #!/bin/awk -f BEGIN { # assign a value to a variable myvar = “Hello, world!” # print the value of the variable print myvar } This script will print the string “Hello, world!” to the … Read more