Featured »

April 16, 2013 – 12:39 pm |

Imagine you have an HPC cluster with a hundred compute nodes named node001-node100. The two commands below will help you generate a list of node names – either all name on one line or one name per …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Archive by Tags

Articles tagged with: ksh

Remove Duplicate Posts in WordPress

December 5, 2009 – 10:28 pm | 11 Comments
Remove Duplicate Posts in WordPress

Below is the SQL script that will attempt to identify and remove duplicate posts in your WordPress database. This script can be useful for autoblogging. If you use plugins like WP-o-Matic to pull full-text RSS …

WordPress Backup Script

October 23, 2009 – 1:04 pm | 7 Comments
WordPress Backup Script

Whenever a new WordPress version comes out, I get an itch to upgrade as quickly as possible. Generally, this is not a good idea, unless you enjoy working out new software bugs and dealing with …

Use Perl inside Shell scripts

May 1, 2008 – 11:44 am | 2 Comments
Use Perl inside Shell scripts

Perl is a far more powerful programming tool than any shell script. Sometimes you want to borrow some of that power without having to rewrite your entire shell script. There is an easy way to integrate Perl snippets inside your shell script.

A simple text string search script

December 13, 2007 – 1:52 pm | 4 Comments
A simple text string search script

Sometimes you need to locate a text string in various configuration files. You don’t know which files. You can just use “grep *”, but the output is rather messy and you can only search …

Solaris One-Liners

March 21, 2006 – 12:41 pm | 2 Comments
Solaris One-Liners

Useful Solaris commands for system administrators

Using rsync to copy files

November 21, 2005 – 4:00 pm |
Using rsync to copy files

In the following example we need to make sure that /export/home on server host2 looks exactly like /export/home on host1. Thus, our SOURCE is host1:/export/home and our TARGET is host2:/export/home
There are two ways of using …

Database operations with SQL and Korn shell

November 20, 2005 – 11:46 am | 3 Comments
Database operations with SQL and Korn shell

The following Korn shell function will read the a directory containing CSV data files named server_sysstat.20051119.csv with format:

Find largest files

November 19, 2005 – 11:17 pm | 3 Comments
Find largest files

How to find the largest files in the directory tree on Solaris.