Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
Linux / UNIX: PHP mail() Error Log File
The error logs generated by the mail() function in PHP can be found in various locations, depending on the operating system and configuration of your system. Here are some common locations where the error logs may be stored:rn rn /var/log/mail.log or /var/log/syslog : On many systems, the error logs
IPv6 Address Example
An IPv6 address is a 128-bit address that is used to identify devices on a network. Here is an example of an IPv6 address: n n n 2001:0db8:85a3:0000:0000:8a2e:0370:7334 n n n This is a valid IPv6 address that follows the format defined in the IPv6 standard. It is composed of 8 blocks of 4 hexadecima
Linux / UNIX: Change Bash To KSH Shell
You can change the default shell in Linux or UNIX to KSH (KornShell) using the following steps:rn rn Check if KSH is installed on your system: rn rn rn rn which kshrn rn rnIf KSH is not installed, you can install it using the package manager for your operating system (e.g., apt-get on Ubuntu, yum on
vi Find And Replace Text Command
In the vi text editor, you can replace text in the following ways:rn rn Replace a single instance of a word: rn rn rn Position the cursor on the word you want to replace. rn Type r followed by the replacement text. rn rn rn Replace all instances of a word in a single line: rn rn rn Press the Esc key
How to find a Word in Vim or vi text editor
In Vim or vi text editor, you can search for a word in the following ways: n n Normal mode search: n n n Press the / key to initiate a forward search. n Type the word you want to search for. n Press Enter to initiate the search. n Press n to move to the next match, or N to move to the previous match
resolvconf: Error: /etc/resolv.conf must be a symlink Error and Solution
The error "resolvconf: Error: /etc/resolv.conf must be a symlink" occurs when the /etc/resolv.conf file on a Linux system is not a symbolic link, which is the expected configuration for systems using the resolvconf package. The solution to this error is to create a symbolic link for /etc/resolv.c
VI / VIM: Insert Current Date / Time
In VI or VIM, you can insert the current date and time by using the following command:rn rn Press the Esc key to enter normal mode. rn Type : to enter command mode. rn Type r followed by the current date and time in the format you want to use. For example, to insert the current date and time in the
NGINX: Create Custom 404 / 403 Error Pages on Linux or Unix
You can create custom 404 and 403 error pages in NGINX on Linux or Unix by following these steps:rn rn Create the error pages that you want to use. You can create these as HTML files and save them in a location that is accessible to NGINX. rn Open the NGINX configuration file: rn rn rn rn sudo nano
KVM Guest: Shared Physical Network Device With Host (bridging configuration)
A KVM virtual machine can use a shared physical network device (also known as bridging) with the host in order to access the network directly, rather than through the host as in a NAT configuration. This allows the virtual machine to have its own IP address on the network, allowing it to communicate
HowTo: Flush Iptables Under Ubuntu Linux
You can flush the iptables rules under Ubuntu Linux using the following steps: n n Open a terminal window. n Run the following command to flush all the iptables rules: n n n n sudo iptables - F n n n This will remove all of the iptables rules and return the firewall to its default state, allowing al
UNIX / Linux: Deleting Multiple Files In Bulk
You can delete multiple files in bulk in Unix or Linux using the following methods:rn rn Using the rm command: rn rn rn rn rm file1 file2 file3 ...rn rn rnFor example, to delete the files file1.txt , file2.txt , and file3.txt , you would run the following command:rn rn rn rm file1.txt file2.txt file
Iptables Drop IP Address
In bash, you can concatenate (combine) strings using the following methods: n n Using double quotes: n n n n string1= "Hello" nstring2= "World" nresult= " $string1 $string2 " n echo $result n # Output: Hello World n n n n Using single quotes: n n n n string1= 'Hello' nstring2= 'World' nresult= '$str
Bash String Concatenation
You can use the iptables command to drop traffic from a specific IP address in Linux. Here's how:rn rn Open a terminal window. rn Run the following command to block incoming traffic from the IP address: rn rn rn rn sudo iptables - A INPUT -s <ip_address> -j DROPrn rn rnWhere <ip_address>
WordPress Rename Image URL For a CDN Usage
To rename image URL for a Content Delivery Network (CDN) usage in WordPress, you can use a plugin such as WP Offload Media Lite. This plugin offloads your media files to a cloud storage provider, such as Amazon S3, and serves them through a CDN. The plugin also automatically replaces the URLs of you
Linux / UNIX: bc Convert Octal To Hexadecimal or Vise Versa
You can use the bc command-line calculator tool to convert between octal and hexadecimal number systems in Linux or UNIX systems. Here's how: Convert Octal to Hexadecimal:rn rn rn $ echo "ibase=8;obase=16; <octal_number>" | bc rn rn rnWhere <octal_number> is the octal number you want
disable Maintenance mode in laravel
To turn off maintenance mode in Laravel, you can use the following steps:rn rn Connect to your server using SSH. rn Navigate to the root directory of your Laravel application. rn Run the following Artisan command: rn rn rn rn php artisan uprn rn rnThis command will turn off maintenance mode and
Linux Stop Flushing of mmaped Pages To Disk
In Linux, the behavior of flushing mmapped pages to disk can be controlled using the madvise() system call. This system call allows you to specify the behavior of the kernel when it comes to writing out the pages of a file that are mapped into memory using mmap(). To stop flushing of mmapped page
Linux / UNIX: Run Commands When You Log Out
In Linux and Unix systems, you can run commands when you log out of the system by using the .bash_logout file in your home directory. This file is executed whenever you log out of a terminal session, and it can be used to run any commands you need to run when you log out. ( Alprazolam ) n Here’
HowTo: Linux Send a Gratuitous ARPs Requests [ Networking ]
A gratuitous ARP (Address Resolution Protocol) request is a broadcast message used to update the ARP caches of other devices on the same network segment. This type of ARP request is typically used to update the ARP caches after changing the IP address of a network device, or to prevent ARP cache poi
Maximum Number of Disks In RAID 5
The maximum number of disks in a RAID 5 configuration depends on the specific implementation of RAID 5, as well as on the hardware and software components used. In general, RAID 5 can support up to 32 disks, with one disk used for storing parity information and the rest used for storing data. How
2,685 guides published.
