Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
macOS – Wake Up Servers Using Wake-on-LAN ( WOL ) Command Utility
On macOS, you can use the wakeonlan command-line utility to send a Wake-on-LAN (WOL) magic packet to wake up a server. You'll need to know the MAC address of the network interface that you want to wake up. You can typically find this information in the server's documentation or by using a network sc
Linux: Find Out Directory Size Command
You can use the du command in a terminal to find the size of a directory in Linux. Example: du -sh /path/to/directoryrn The -s flag summarizes the directory size, and -h displays the output in a "human-readable" format (i.e., in GB or MB, instead of blocks). Replace /path/to/directory with the actua
How to create tar.gz file in Linux using command line
You can create a .tar.gz file in Linux using the tar command. The basic syntax is as follows: n n n tar -czvf file_name.tar.gz directory_to_compress n n n Here’s what each option does: n n c : Create a new archive. n z : Compress the archive using gzip. n v : Display verbose output, showing th
Linux find out which port is open using the command line
You can use the lsof command to find out which ports are open on a Linux system:rn rn rn lsof - i rn rn rnThis will display a list of all open Internet sockets and the processes that have opened them. The -i option is used to specify that you only want to display information about Internet sockets.r
Mac Os X: Find Out Wireless WI-Fi Connection Speed Rate
You can find out the wireless connection speed rate on Mac OS X by using the following steps:rn rn Click on the Wi-Fi icon in the menu bar and select "Open Network Preferences." rn In the Network Preferences window, select the Wi-Fi connection that you're currently using. rn Click on the "Advanced"
Awk Floating Point Number Addition Results Are Unexpected
When working with floating-point numbers in awk, unexpected results may occur due to the limitations of floating-point arithmetic. Floating-point numbers are stored in a binary format, which can cause inaccuracies in arithmetic operations, especially when adding or subtracting large or small numbers
Nginx Redirect Mobile / Smart Phone Traffic To Mobile Version Of the Web Site
To redirect mobile/smartphone traffic to the mobile version of a website using Nginx, you can use the if directive in your Nginx configuration file. Here's an example configuration that redirects all mobile devices to a separate URL:rn rn rn server {rn listen 80;rn server_name example.com;rn root
Linux: Log Everyone Out Of The System
To log everyone out of the system, you can use the kill command. To log out all users except yourself, you can use the following command:rn rn rn kill -HUP -1rn rn rnTo log out all users including yourself, you can use the following command:rn rn rn kill -HUP 1rn rn rnNote that using this command
Unix: csh Shell Loop Example
In the csh shell, you can use a loop to perform a set of commands multiple times. Here are a few examples of loops in csh :rn rn For loop: rn rn rn rn #!/bin/csh set i = 1 while ( $i <= 10 )rn echo "Iteration $i " rn @ i++rnendrn rn rnThis script will print "Iteration 1" to "Iteration 10
FreeBSD 9.1: HowTo Load a Kernel Module
In FreeBSD 9.1, you can load a kernel module using the kldload command. Here's the basic syntax to load a kernel module:rn rn rn kldload < module -name>rn rn rnFor example, to load the if_bge module, use the following command:rn rn rn kldload if_bgern rn rnOnce the module is loaded, you can
Debian / Ubuntu: apt-get force reinstall package
To force reinstall a package using apt-get on Debian or Ubuntu, you can use the following command: n n n sudo apt- get install --reinstall < package -name> n n n For example, to reinstall the nginx package, use the following command: n n n sudo apt - get install --reinstall nginx n n n The --r
W: TMPDIR is Mounted noexec, Will Not Cache Run Scripts Error and Solution
The error message "W: TMPDIR is mounted noexec, will not cache run scripts" means that the /tmp directory, which is used to store temporary files, is mounted with the noexec option. This means that you cannot execute scripts from the /tmp directory. To resolve this error, you have several options
Bash Display Web Page Content In Terminal
To display the content of a web page in the terminal, you can use the curl command. Here's the basic syntax to display the content of a web page:rn rn rn curl < URL > rn rn rnFor example, to display the content of the Google homepage, you can use the following command:rn rn rn curl https :
Linux / Unix: Shell Script Find Out In Which Directory Script File Resides
To find out the directory in which a shell script resides, you can use the dirname command along with the $0 shell variable, which represents the name of the script file. Here's the command to find the directory of a shell script:rn rn rn dir =$( dirname " $0 " )rn rn rnThe dirname command will e
CentOS / RHEL: Install KornShell (KSH)
To install the KornShell (KSH) on CentOS or Red Hat Enterprise Linux (RHEL), you can use the following steps: n n Update the package list:n n n $ sudo yum update n n n n Install KSH:n n n $ sudo yum install ksh n n n n Verify the installation:n n n $ which ksh n n n n n The which command will displa
HowTo: OS X Take a Screenshot On My Mac Desktop
To take a screenshot on an OS X (Mac) desktop, you can use the following methods:rn rn Entire screen screenshot:rn rn Press Command + Shift + 3 to capture an image of the entire screen. The screenshot will be saved to the desktop as a .png file. rn rn rn Screenshot of a portion of the screen:rn rn P
Linux: Find Out What Is Using TCP Port 80
To find out what is using TCP port 80 on a Linux system, you can use the lsof (List Open Files) command, which displays information about files opened by processes running on the system. Here's the command to find out what is using TCP port 80:rn rn rn $ sudo lsof - i : 80 rn rn rnThis will displ
Fedora Linux: Restart / Stop / Start DHCPD Server Command
To manage the DHCPD (Dynamic Host Configuration Protocol Daemon) server on Fedora Linux, you can use the following commands:rn rn To restart the DHCPD server:rn rn rn $ sudo systemctl restart dhcpdrn rn rn To stop the DHCPD server:rn rn rn $ sudo systemctl stop dhcpdrn rn rn To start the DHCPD serve
Clear Squid Proxy Cache And Re-create the Cache Directories
To clear the Squid proxy cache and re-create the cache directories, you can use the following steps:rn rn Stop the Squid service:rn rn rn $ sudo service squid stoprn rn rn Remove the cache directories:rn rn rn $ sudo rm -rf /var/spool/squid/* rn rn rn Re-create the cache directories:rn rn rn $ sudo
OS X Mountain Lion 10.8 Set Apache and PHP Web-Server
To set up an Apache and PHP web server on OS X Mountain Lion 10.8, follow these steps:rn rn Install the Apache web server:rn rn Open Terminal. rn Run the following command to start the Apache web server: rn rn rn rn $ sudo apachectl startrn rn rn Install PHP:rn rn Download the PHP package from the o
2,685 guides published.
