Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
UNIX Command Line Tools For MS-Windows XP / Vista / 7 Operating Systems
There are several UNIX command line tools available for Windows operating systems, including:rn rn Cygwin: Cygwin is a Linux-like environment for Windows that provides a collection of tools and utilities, including shells, compilers, editors, and other development tools. It offers a UNIX-like enviro
Handling nginx Failover With KeepAlived
Keepalived is a free, open-source software package that provides failover and load-balancing services for Linux-based systems. It is commonly used to manage web servers and proxies, including nginx. In this example, we will set up a failover cluster with two nginx servers, one acting as the master a
Bash Shell: Convert Tabs To Spaces In a File
To convert tabs to spaces in a file using a Bash shell, you can use the expand command. Here's how to do it:rn rn Open a terminal and navigate to the directory where the file is located. rn Run the expand command followed by the name of the file you want to convert. For example, if your file is name
Linux RAM Disk: Creating A Filesystem In RAM
In Linux, you can create a RAM disk, also known as a RAM filesystem or a tmpfs, which is a portion of your system's memory that is used as a virtual disk. This can be useful for storing temporary files, speeding up disk-intensive operations, and reducing wear on physical disks. Here's how to crea
Fedora Linux Install Linux Kernel Headers And Developer Files
To install the Linux kernel headers and development files on a Fedora Linux system, you can use the dnf package manager. Here's how to do it:rn rn Open a terminal and update the dnf package manager's cache by running the following command:rn rn rn sudo dnf makecachern rn rn Install the kernel header
HowTo: RPM List Files
To list the files contained in an RPM package, you can use the rpm command with the -ql option. Here's how to do it:rn rn Open a terminal and run the following command to list the files contained in an RPM package: rn rn rn rn rpm -ql package -namern rn rnReplace package-name with the name of the RP
Linux Create A Bootable USB Pen
To create a bootable USB pen drive in Linux, you can use the dd command to write the ISO image to the USB drive. Here’s how to do it: n n Insert the USB pen drive into a USB port on your computer. n Open a terminal and type the following command to find the device name of the USB drive: n n n
Bash History Display Date And Time For Each Command
By default, the history command in Bash shows a list of recently executed commands with their respective line numbers. However, it does not display the date and time when each command was executed. ( www.utahcnacenters.com ) To show the date and time for each command in the Bash history, you can set
Linux lsscsi: See List Of All SCSI / SATA Hard Disks and CD / DVD Drives
The lsscsi command can be used to list all SCSI / SATA hard disks and CD / DVD drives on a Linux system. Here's how to use it:rn rn Open a terminal on your Linux system. rn Type the following command and press Enter:rn rn rn lsscsirn rn rnThis will display a list of all SCSI / SATA devices on your s
Linux Date Command: Convert Named Stats Dump Date
If you have a named statistics dump file in Linux and want to convert the date and time in the file to a different format, you can use the date command. Here’s an example: n Assuming you have a named statistics dump file named named_stats.txt with the following content: n n n +++ Statistics Du
AIX UNIX: Enabling Jumbo Frames
To enable jumbo frames on an AIX UNIX system, you can follow these steps:rn rn Check if your network adapter supports jumbo frames: To enable jumbo frames, you need to have a network adapter that supports it. You can check if your adapter supports jumbo frames by running the following command:rn rn
phpMyAdmin: Cannot load mysql extension. Please check your PHP configuration
The "Cannot load mysql extension. Please check your PHP configuration" error in phpMyAdmin usually occurs when the MySQL extension is not enabled in PHP. Here are some steps you can take to fix this error:rn rn Check if the MySQL extension is installed: You can check if the MySQL extension is instal
crond: (*system*) BAD FILE MODE Error and Solution
The “BAD FILE MODE” error in crond usually occurs when the file permissions on the crontab file or directory are incorrect. The error message indicates that the crontab file has a bad file mode, which means that it is either too permissive or not permissive enough for the crond daemon to
Bash Shell Read a Line Field By Field
In Bash shell, you can use the read command to read input line by line, and then use the IFS (Internal Field Separator) variable to specify the delimiter character(s) that separate the fields. Here is an example script that reads input from a file called data.txt and extracts the fields delimited
socat: Linux / UNIX TCP Port Forwarder
socat is a powerful and versatile utility that can be used for a wide range of network-related tasks, including TCP port forwarding. To use socat for TCP port forwarding, you can use the following command:rn rn rn $ socat TCP - LISTEN :local_port ,fork TCP :remote_host :remote_port rn rn rnIn thi
nginx: Send Custom HTTP Headers
In Nginx, you can send custom HTTP headers to the client by using the add_header directive. Here is an example configuration that adds a custom X-My-Header HTTP header to all responses:rn rn rn server {rn listen 80 ;rn server_name example.com; location / {rn # Set the content of the custom heade
Linux / UNIX: Convert Epoch Seconds To the Current Time
In Linux/UNIX, you can use the date command to convert epoch seconds to the current time. Here's an example:rn rn rn #!/bin/bash # Set epoch seconds to a variable rnepoch_seconds= "1632718301" # Use the date command to convert epoch seconds to human-readable time rnformatted_time=$( dat
Bash Find Out IF a Variable Contains a Substring
To find out if a variable contains a substring in Bash, you can use the ]; then n echo "Substring found" n else n echo "Substring not found" n fi n n n In this example, the *ello* pattern matches any string that contains the substring “ello”. If the substring is found, the script will ou
Linux Kernel Recompile: Do I Have To Recompile All Installed Applications
No, you do not have to recompile all installed applications after recompiling the Linux kernel. When you recompile the Linux kernel, you are essentially creating a new kernel image file that contains the new kernel code and configuration options. This new kernel image file is then used when the s
How to verify NTP is working Or not (Check Status of NTP)
To verify if NTP (Network Time Protocol) is working or not and check the status of NTP, you can use the following commands:rn rn Check if the NTP daemon is running: rn rn rn rn sudo systemctl status ntprn rn rnThis will show you the status of the NTP daemon and whether it is running or not. If it is
2,685 guides published.
