System Administrators Toolkit: Standardizing your UNIX command-line tools

The latest article in my System Administration Toolkit series at IBM developerWorks has been released. This article on ways of simplifying and standardizing your environment and command-line tools within a heterogeneous environment.

As someone who regularly switches between Linux, Mac OS X and Solaris, to name but a few, I will often find myself using the wrong command on one host, but one which is perfectly valid on another. I’ve developed a number of different methods and solutions for that over the years, and this article covers the main solutions, including:

  • Using aliases
  • Using inline shell functions
  • Using scripts
  • Using a single source

Read System Administration Toolkit: Standardizing your UNIX command-line tools

Friday, September 1st, 2006 Articles, IBM DeveloperWorks, UNIX

1 Comment to System Administrators Toolkit: Standardizing your UNIX command-line tools

  1. [...] One of my new articles is on smplifying your command line (read more about System Administrators Toolkit: Standardizing your UNIX command-line tools, making your life easier as you move between different environments. The same principles can be applied just to make your life easier. Here’s a function I’ve had in my bash init script for years that gets round the issue of extracting a compressed archive file of various types, even if your tar isn’t aware of the compression type: function uz () { file=$1 case $file in (*gz) gunzip -c $file|tar xf -;; (*bz2) bunzip2 -c $file|tar xf -;; (*Z) tar zxf $file;; (*zip) unzip $file;; esac } [...]

  2. MCslp Coalface » Making a single extractor on September 4th, 2006

Leave a comment

Captcha
Enter the letters you see above.

Search

    Archive

    Meta