Cron is the Linux system for repeated scheduled tasks. Below are a few examples on how to use cron, what the fields mean, and how
How To Exclude Mobile App Traffic in Adwords Buys
Much of the adwords mobile app traffic is junky and low converting and sometimes you’ll want to exclude it altogether. The easiest way to do
Search Inside Text Files With Grep
Grep is too important not to know for Linux sysadmins. Grep is commonly combined with other commands via pipes to search and filter standard output.
Several Ways to Run Queries from Bash
In some of these examples, particularly the remote server I’ve included usernames and passwords, but you might not need it locally, depending on your mysql
Count Number of Lines in a File
Back to basics with this one, the linux wc command (word count) can be used to count lines, words and bytes in a file and
Print the Newest File in a Given Directory and Other Directory Listing Examples
Linux directory listing command ls is another must. This command lists files oldest to newest piped to grep which excludes directories piped to awk which
How to Diff Two Strings and Show the Difference in HTML
This php class will take two strings and return a html diff of them with the <ins> and <del> html tags representing what was deleted
How to Use Grep Combined with Standard Output From Other Commands
Grep is often most powerful when examining the output of other shell commands. This example searches the Linux processes from the ps command for apache.
Figuring Out Linux sort By Examples
The Linux sort – it’s incredibly fast, runs well on files larger than ram, and a must to master for any good sysadmin. Here are
How to Recursively List Out Files In a Directory in Linux
A few examples on using the Linux find command to list out all files matching a file type. The find command is on just about