Nginx: Allow All But Block Certain POST Request URLS For Selected Spammer IP Address/CIDR

I am a small business and ecom site owner. I also run a WordPress based blog to connect with my customers. However, I get too much spam from certain IPs and net-blocks. How do I…

What Does –– (double dash) Mean In SSH Shell Command?

I see lots of seasoned admins and cloud provider wrapper scripts use ssh client command as follows in shell: ssh nixcraft@server1.cyberciti.biz — What the double — (dash) does here? Why it is used in this…

HowTo: Reinstall MySQL v5.x On Linux

M y MySQL database installation has been corrupted. I would like to delete old mysql server. How do I reinstall MySQL database server version 5.x on Linux or Unix-like oses? A software upgrade broke my…

Mac OS X Sierra Install wget Network Downloader Utility

I recently learned that “wget” can continue getting a partially-downloaded (resume download) file. I am unable to find wget command on Mac OS X. How do I install install wget on Mac OS X (Mountain…

HowTo: Enable Nginx Status Page

A pache has status page that can provide data about Apache. How do I enable and display such page using nginx server? How do I enable nginx status page on Linux or Unix-like operating systems?…

Python sleep(): Add Delay In A Seconds To Suspend Execution Of A Script

I am a new Python user. I would like to delay execution for five seconds in a Python script. How do I add a time delay in Python on Unix/Linux? Is there a sleep command…

Nginx: Redirect Backend Traffic Based Upon Client IP Address

I have four Apache backend servers in front of nginx reverse proxy server. How do I make sure nginx reverse proxy load balancer always send specific client IP address (say IP 1.2.3.4) request to http://apachereadwrite/…

Linux / Unix: whereis Command Examples

I am a new Linux and Unix-like system command line user. How do I find and locate the binary, source, and manual page files for a given command?   You need to use the whereiscommand…

Linux / Unix: Check Last Time User Logged In On The System

I am a new Unix system admin. How do I find ouw who has recently use the Linux or Unix-like server? Which terminals they used, and when they logged in and out of the my…

Unix / Linux: Check New Files In File System /var/www/uploads/

R ecently, I switched from MS-Windows based web-server to CentOS Linux based Apache web-server. All user uploaded files are stored in /var/www/uploads/ directory. Is there command that can give me a list of files that…