Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
Red Hat / CentOS IPv6 Network Configuration
To configure IPv6 networking on Red Hat or CentOS, follow these steps:rn rn Open the network configuration file for editing:rn rn rn sudo vi /etc/sysconfig/network-scripts/ifcfg-< interface -name>rn rn rnReplace <interface-name> with the name of the network interface you want to configur
Iptables Unblock / Delete an IP Address Listed in IPtables Tables
To unblock or delete an IP address listed in the iptables tables, follow these steps:rn rn Check the iptables rules for the IP address you want to unblock by running the following command:rn rn rn sudo iptables -L -n --line-numbers rn rn rnThis will display a list of all iptables rules, along with t
pdfinfo: Find Out PDF File Information From A UNIX / Linux Shell Prompt
The pdfinfo command can be used in a UNIX / Linux shell prompt to display various information about a PDF file. Here are the steps to use pdfinfo :rn rn Open a terminal window and navigate to the directory containing the PDF file you want to inspect. rn Run the following command, replacing "filename
Red Hat / CentOS Add IPv6 Network Alias (multiple IPv6 IP to Same NIC)
To add an IPv6 network alias to a Red Hat or CentOS server, allowing multiple IPv6 addresses to be assigned to the same NIC (Network Interface Card), you can use the ip command. Here are the steps: n n Determine the name of the network interface to which you want to add the IPv6 address. You can use
Freebsd Mount a NAS via SMB / CIFS
To mount a NAS (Network-Attached Storage) device via SMB/CIFS in FreeBSD, you can use the mount_smbfs command. Here are the steps:rn rn Install the Samba client software if it is not already installed:rn rn rn pkg install net/samba44rn rn rn Create a mount point for the NAS share:rn rn rn mkdir /mnt
Bash Clear DNS Cache
In Bash, you can clear the DNS cache by flushing the system resolver cache. Here are the steps to clear the DNS cache in Bash:rn rn Open a terminal window and type the following command to clear the cache:rn rn rn sudo systemd-resolve --flush-caches rn rn rnThis command will flush the DNS cache and
Linux realpath: Find Absolute Pathname For Given Command or File
The realpath command in Linux can be used to find the absolute pathname for a given command or file. Here's an example:rn rn rn $ realpath /usr/bin/pythonrn/usr/bin/pythonrn rn rnIn this example, we're using realpath to find the absolute pathname for the python command located in the /usr/bin direct
Macbook Shell / MacbookPro shell: Protective Leather Shell
A protective leather shell for a MacBook or MacBook Pro is a type of cover that is designed to protect the device from scratches, dings, and other types of damage that can occur during everyday use. These shells are typically made from high-quality leather that is durable and resistant to wear and t
Applescript: Run or Call a Shell Script
To run or call a shell script from AppleScript, you can use the do shell script command. Here's an example:rn rn rn set myScriptPath to "/path/to/my/script.sh" rn do shell script myScriptPathrn rn rnIn this example, the myScriptPath variable contains the path to the shell script that you want to run
Bind Security: Transaction Signatures (TSIG) Configuration
Transaction Signatures (TSIG) is a method of authenticating DNS messages between servers, allowing for secure communication and transfer of DNS zones. Here's how you can configure TSIG on a BIND DNS server:rn rn Generate a shared secret key that will be used to authenticate DNS messages. You can use
How To: Rename A File In Bash
To rename a file in Bash, you can use the mv command, which is used to move and rename files. Here's the basic syntax:rn rn rn mv old_filename new_filenamern rn rnFor example, to rename a file named "file.txt" to "new_file.txt", you can use the following command:rn rn rn mv file.txt new_file.txtrn r
Bash Iterate Array Examples
Functions in Bash shell scripts allow you to group a set of commands together and call them from multiple places in your script. Here are some examples of how to define and call Bash shell script functions:rn rn Define a function that prints a message to the console:rn rn rn function my_function {rn
Bash Shell Script Function Examples
In Bash, you can iterate over an array in several ways. Here are some examples:rn rn Iterate over an array using a for loop:rn rn rn my_array=(apple banana cherry)rn for i in " ${my_array } " rn do rn echo " $i " rn done rn rn rnThis will loop through each element in the my_array array and print it
Apache: Graceful Server Reboot From Shell
To gracefully reboot the Apache server from the shell in Linux or Unix-based systems, you can use the apachectl command with the -k graceful option. Here are the steps:rn rn Open a terminal window on your Linux or Unix-based system. rn Switch to the root user or use the sudo command to run the follo
Solaris UNIX Show Network Routing Table Information
To display the network routing table information on Solaris UNIX, you can use the netstat command with the -r option. Here are the steps:rn rn Open a terminal window on your Solaris machine. rn Type the following command to display the network routing table information:rn rn rn netstat -rrn rn rnThi
Label a Linux Partition
In Linux, you can label a partition to give it a meaningful name that can help you identify its purpose. Here are the steps to label a Linux partition:rn rn Identify the partition that you want to label. You can use the lsblk command to list all the available disks and partitions on your system:rn r
FreeBSD Install FuzzyOCR To Detect Image Spam
FuzzyOCR is a tool that can be used to detect image spam in email messages. Here are the steps to install FuzzyOCR on FreeBSD: n n Open a terminal window on your FreeBSD machine. n Install the required dependencies:n n n sudo pkg install p5-Image-Info p5-Image-Size p5-MIME-Tools n n n n Download the
UNIX Date Command Examples
The date command in UNIX is used to display or set the system date and time. Here are some examples of how to use the date command in different ways: n n Display the current date and time:n n n date n n n This will display the current date and time in the default format, which is usually something l
Linux Delete Folder Using rmdir and rm Command
In Linux, you can delete a folder using either the rmdir or rm command. Here's how to do it: Using rmdir command:rn rn Open a terminal window. rn Navigate to the parent directory of the folder you want to delete. rn Type the following command: rmdir foldername (replace "foldername" with the name
Linux Display Date And Time Of Login
You can use the last command to view the date and time of the last login. n n Open a terminal window. n Type the following command: last n Press Enter. n n This will display a list of recent logins, including the date and time of each login. The output will look something like this: n n n username p
2,685 guides published.
