Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
How to unpack .tgz file on a Linux
To unpack a .tgz file on a Linux system, use the following command:rn rn rn tar -xvzf filename.tgzrn rn rn rn x option is to extract the archive. rn v option is for verbose output, it shows the progress of the unpacking process. rn z option is to unpack the archive with gzip. rn f option is to speci
OpenBSD: Reload / Restart / Stop dhcpd Server Command
To reload or restart the dhcpd server on OpenBSD, use the following command:rn rn rn # rcctl restart dhcpd rn rn rnTo stop the dhcpd server, use the following command:rn rn rn # rcctl stop dhcpd rn
RHEL / CentOS 6.x KVM Virtualization Installation and Configuration Guide
Installing KVM on RHEL/CentOS 6.x involves the following steps:rn rn Verify hardware virtualization support: Make sure that your hardware supports virtualization. You can check this by running the following command: rn rn rn rn grep -E 'vmx|svm' /proc/cpuinforn rn rn rn Install KVM packages: The KVM
HowTo: Upgrade CentOS Linux 6.4/6.3/6.2/6.1/6.0 to v6.5
To upgrade CentOS 6 to version 6.5, follow these steps:rn rn Backup your data: Before proceeding with the upgrade, it's always a good idea to backup your data. This way, you can restore your system if something goes wrong during the upgrade process. rn Update existing packages: Before upgrading the
Mac OS X: Install Go Programming Language
To install Go programming language on Mac OS X, you have several options:rn rn Homebrew: This is a package manager for Mac OS X that makes it easy to install and manage software. To install Go using Homebrew, run the following command in your terminal: rn rn rn brew install go rn rn rn rn Binary Ins
Nginx: Allow All But Block Certain POST Request URLS For Selected Spammer IP Address/CIDR
To allow all but block certain POST request URLs for selected spammer IP addresses/CIDR in Nginx, you can use the following configuration in your Nginx server block: n n n location / { n if ( $request_method = POST) { n set $block 0; n # block POST requests to /spammer n if ( $uri = /spammer) { n se
What Does ‐‐ (double dash) Mean In SSH Shell Command?
In an SSH shell command, "--" (double dash) is used as a command line option separator. It separates options from positional parameters and is used to indicate that no further options are to be parsed. For example, consider the following command:rn rn rn ssh user @host -- ls -l rn rn rnHere, the
How To Reinstall MySQL v5.x On Linux
To reinstall MySQL v5.x on Linux, you can follow these steps:rn rn Stop the MySQL service: rn rn rn rn sudo systemctl stop mysqldrn rn rn rn Remove the existing MySQL installation: rn rn rn rn sudo yum remove mysqlrn rn rn rn Remove the MySQL data directory: rn rn rn rn sudo rm -rf /var/lib/mysqlrn
macOS Install wget network downloader utility
Wget is a network downloader utility that is not included by default on macOS. However, you can install it using a package manager like Homebrew. Here are the steps to install wget on macOS using Homebrew:rn rn Install Homebrew if you don't already have it installed. You can install it by running
HowTo: Enable Nginx Status Page
To enable the Nginx status page, you need to add a location block to your Nginx configuration file that will return information about the status of Nginx. Here's an example of how you can enable the Nginx status page:rn rn Open the Nginx configuration file in your preferred text editor: rn rn rn
Python sleep(): Add Delay In A Seconds To Suspend Execution Of A Script
In Python, you can use the time module's sleep function to add a delay to your script. The sleep function takes a single argument, which is the number of seconds to pause execution of the script. Here's an example that pauses the execution of the script for 5 seconds:rn rn rn import time pri
CentOS / RHEL See Detailed History Of yum history Commands
To see a detailed history of yum commands on CentOS or Red Hat Enterprise Linux (RHEL), you can use the yum history command with the following options:rn rn rn yum history info rn rn rnHere's what each option does:rn rn info : Show detailed information about a specific transaction. rn transaction-id
CentOS / RHEL: Install php-tidy Module / Extension
To install the php-tidy module on CentOS or Red Hat Enterprise Linux (RHEL), follow these steps:rn rn Ensure that you have the correct repository enabled for your version of CentOS/RHEL. For example, for RHEL 7, you need to enable the EPEL repository: rn rn rn rn sudo yum install epel - release rn r
Linux: Keep An Eye On Your System With Glances Monitor
Glances is a system monitoring tool for Linux that provides an overview of the system's performance and resource usage. With Glances, you can monitor CPU usage, memory usage, disk I/O, network traffic, and more, all in a concise and user-friendly interface. Here's how to install and use Glances o
Linux list processes by user names (EUID and RUID)
To list all the processes running on a Linux system by their effective and real user IDs (EUID and RUID), you can use the ps command with the following options:rn rn ps - e - o user = EUID,ruid = RUID,pid,cmdrn rn rnHere's what each option does:rn rn -e : Show processes from all users. rn -o user=EU
How to delete group in Linux using groupdel command
To delete a group in Linux using the groupdel command, follow these steps:rn rn Open a terminal window and log in as the root user, or use sudo to run the following command: rn rn rn rn sudo groupdel groupnamern rn rn rn Replace groupname with the name of the group you want to delete. rn If the grou
CentOS / RHEL 6: Install Midnight Commander File Manager
Midnight Commander is a popular file manager for Linux systems, and it can be installed on CentOS/RHEL 6 using the following steps:rn rn Enable the EPEL repository: rn rn rn rn sudo yum install epel - release rn rn rn rn Install Midnight Commander using yum: rn rn rn sudo yum install mcrn rn rn rn L
Nginx: Redirect Backend Traffic Based Upon Client IP Address
You can redirect backend traffic based upon the client's IP address in Nginx by using the nginx location block and the proxy_pass directive. Here's an example:rn rn rn http {rn server {rn listen 80 ;rn server_name example.com; location / {rn # Redirect client with IP address 10.0.0.1 to backend
Linux / Unix whereis Command Examples
The whereis command is a Linux/Unix utility that is used to locate the binary, source code, and manual page files for a given command or program. The whereis command searches the standard Linux/Unix paths for executables, libraries, and man pages, and it displays the location of the files it finds.
CentOS Linux 5/6: Change OpenSSH Port Number
To change the OpenSSH port number on CentOS Linux 5/6, you need to edit the sshd_config file. Here's how:rn rn Open the sshd_config file: rn rn rn sudo nano /etc/ssh/sshd_configrn rn rn rn Locate the line that starts with Port : rn rn rn rn Port 22rn rn rn rn Change the port number to the desired va
2,685 guides published.
