Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
Lighttpd Deny Access To Folders / Directories
To deny access to certain folders or directories in Lighttpd, you can use the URL access control feature in Lighttpd. This can be done by using the url.access-deny configuration directive in your Lighttpd configuration file. Here is an example configuration that denies access to the /secret director
macOS X Mount NFS Share / Set an NFS Client
To mount an NFS (Network File System) share on a macOS X system, you can use the mount command. Here's an example:rn rn rn mount -t nfs -o resvport < NFS -server-name> :<remote-directory> <local-mount-point>rn rn rnIn this command, <NFS-server-name> is the name or IP address
Google Apps Domain Create SPF Records For BIND or Djbdns
SPF (Sender Policy Framework) records are used to authenticate email messages and prevent them from being marked as spam. To create SPF records for your Google Apps domain in BIND or djbdns, you'll need to add a text (TXT) record to your domain's DNS configuration. Here's an example SPF record fo
Explains: echo Command (echo $”string”) Double-quoted String Preceded By a Dollar Sign
The echo command is used to display text or the value of a variable in the terminal. When you use echo $”string” , the double-quoted string is preceded by a dollar sign, which indicates that the string is an ANSI C-style string. This means that special characters in the string, such as newline, tab,
How to compress files with tar command on Linux/Unix
The tar command is commonly used to compress and archive files in Linux/Unix systems. The basic syntax for compressing files with tar is:rn rn rn tar -czvf archive.tar.gz file1 file2 ...rn rn rnHere's a breakdown of the options used in the command:rn rn -c : create a new archive rn -z : compress the
mysqldump: Got error: 1044: Access denied for user ‘root’@’localhost’ to database ‘information_schema’ when using LOCK TABLES
The error message "Got error: 1044: Access denied for user 'root'@'localhost' to database 'information_schema'" indicates that the user 'root' does not have the necessary privileges to access the database 'information_schema' when using the LOCK TABLES option with mysqldump . To resolve this issu
iptables: Read a List of IP Address From File And Block
You can use iptables to block incoming traffic from a list of IP addresses stored in a file. Here's an example of how to do this in a bash script:rn rn rn #!/bin/bash # Define the path to the file containing the list of IP addresses rnfile= "/path/to/ip.list" # Loop through each line of th
Replicating Content Between USA, Japan (Asia) and UK (Europe) Webservers
There are various ways to replicate content between webservers located in different regions, such as USA, Japan, and UK. Here are a few options:rn rn File Synchronization Tools: Tools like rsync , lsyncd , or unison can be used to keep the content on all webservers in sync by copying new or updated
Howto: Use wget Recursively Download All FTP Directories
You can use the wget utility to recursively download all directories and files from an FTP server. To do this, you need to use the -r or --recursive option, which allows wget to follow and download all files and directories in the FTP server. You can also use the -np or --no-parent option to avoid d
Apache2 NameVirtualHost *:80 has no VirtualHosts Error and Solution
The "NameVirtualHost *:80 has no VirtualHosts" error is encountered when configuring Apache2 to serve multiple websites, also known as virtual hosts, on a single server. The error occurs when the virtual host configuration is incorrect and Apache2 is unable to find any matching virtual host for a re
ping command: TTL Expired In Transit Error and Solution
The "TTL expired in transit" error message occurs when the Time-To-Live (TTL) value of an IP packet has reached zero, indicating that the packet has been in transit for too long and should be discarded. This error message is usually encountered when using the ping command to test network connectivit
Linux: Bash Get Time
In Linux, you can use the date command in the bash shell to get the current time. The default format of the date command is the system's local time, which is usually set by the administrator during the installation of the operating system. Here's an example of using the date command to get the cu
Truncate: UNIX Binary Log File
In Unix-like operating systems, the truncate command is used to resize or extend a file to a specified size, or to shrink it by removing data from the end. This command is often used to truncate binary log files, which are used by various applications to record events or transactions. Here's an e
Ubuntu Linux CD: Default Username and Password
The default username and password for an Ubuntu Linux CD depend on the specific distribution and release. However, for the latest version of Ubuntu, the default username is usually "ubuntu" and there is no default password. When you boot from the Ubuntu CD, you'll be prompted to create a user accoun
Linux Find Out Which Process Is Listening Upon a Port
In Linux, you can use the lsof (List Open Files) command to find out which process is listening upon a specific port. Here's an example of using lsof to find the process listening on port 80:rn rn rn lsof - i : 80 rn rn rnThis command will display a list of all the open files on the system, with
Linux / UNIX: Deleting Files In Many Subdirectories
If you need to delete files in many subdirectories, you can use the find command in Linux and UNIX systems. The find command allows you to search for files and directories based on various criteria, including the name, type, size, and date of the files. Here's an example of using the find command
Linux / UNIX: DNS Lookup Command
The nslookup command is a tool for performing DNS lookups in Linux and UNIX systems. This command allows you to query a DNS server for information about a hostname, including its IP address and other information. Here's an example of using the nslookup command to perform a DNS lookup for the host
Linux Network IP Accounting
IP accounting in Linux is a feature that allows you to keep track of the amount of network traffic that is generated by or destined for specific IP addresses. This can be useful for various purposes, such as monitoring network usage, tracking the source of network problems, and enforcing network usa
Linux / UNIX scp Copy Hidden . (Dot) Files
In Linux and UNIX, hidden files are files that start with a dot ( . ) character. To copy hidden files using scp , you simply need to include the file name with the dot in the source and destination paths. n Here’s an example of copying a hidden file named .myfile from the local machine to a re
Linux Find Out My IP Number ( IP Address )
You can find your IP address in Linux using the following methods: n n Using the ip command: n n n n ip addr show | grep 'inet ' | grep -v 127.0 . 0 . 1 | awk '{print $2}' n n n This will show your IP address (or addresses) along with the associated network interfaces. n n Using the hostname command
2,685 guides published.
