Using Git for Source Control

by mike May 4, 2012

TweetGIT is the source control tool, a distributed version control system (dvcs) which is written in C. This provides a history of the files that are maintained by it. In distributed version control each user has a complete copy of the code so there is no central code repository. In this scenario an administrator makes [...]

Read Full Bash Tutorial →

Getting Started with the Command Line

by mike February 5, 2012

TweetIf you are new to Linux and need an introduction to the command-line there are several things to consider. 1. Get a Comprehensive Outline It is easy to spend time learning those topics of interest and end up lacking the whole picture. If you are looking for resources to learn Linux at the command-line then [...]

Read Full Bash Tutorial →

Automatically Detect File Changes on Your Server

by mike February 4, 2012

AIDE (Advanced Intrusion Detection Environment) is the Open Source version of Tripwire. AIDE takes a snapshot of every file on your server, records it and then will notify you of any changes. This tutorial will show you how to create a script that will automate this process and send you an email of the outcome.

Read Full Bash Tutorial →

Script: Find Frequency of Words in a File

by mike February 4, 2012

TweetFrequency of Words in a File In the 1980s a Bell Labs researcher Jon Bentley posed a challenge for someone to write a program that would take a text file, input an integer for n and print the frequency of occurrence of words from largest to smallest. Several programs were written to achieve the goal [...]

Read Full Bash Tutorial →

Looping Through a List

by mike December 22, 2011

TweetWhen you write scripts for administrative purposes, often you may want to evaluate a list and then take actions based on the list.  This script is an example of that process and is designed to be a script used by a Nagios server to monitor and respond to web site attacks. The heart of the [...]

Read Full Bash Tutorial →

Understanding Flow in a Script

by mike December 7, 2011

TweetFlow The order in which you set up commands to execute is called flow.  This essentially sets commands to act the same each time they execute.  However, there will be times when you want to change the way the commands execute based on different situations, thus change the flow.  Changing the flow can be done [...]

Read Full Bash Tutorial →