• Unix: Writing more maintainable shell scripts

    Posted January 25, 2014 - 8:55 pm

    Do you find yourself rewriting scripts because it's easier than finding or modifying your old ones? Do you find yourself spending far too much time reworking scripts when you need to make what seems like a small change? Let's look at how you can write scripts that are easier to reuse and easier to maintain.
  • Unix: When a bash script asks "Where am I?"

    Posted December 7, 2013 - 8:08 pm

    Sometimes what seems like the simplest of questions can have you scrambling for answers. Today's seemingly simple question is "How can a bash script identify its own location?"
  • Unix: Debugging your scripts even more effectively

    Posted November 23, 2013 - 1:27 pm

    Last week's post provided some tips and tricks for debugging scripts. This week's provides some even better ones!
  • Unix: The art of being lazy

    Posted October 28, 2013 - 6:34 pm

    One of the most endearing qualities of Unix devotees is how determined they are to be as efficient as possible. Why type three characters if you can do the same thing with two? And one of the best ways to cut down keystrokes is to turn common commands into aliases.
  • 3 ways to pimp your BASH console

    Posted August 29, 2013 - 12:00 am

    If you spend a lot of time around a linux console, you’re familiar with the vast color emptiness that is BASH. The default color scheme and text layouts for BASH can be pretty lame. Luckily the terminal is pretty customizable and you can do some modding to improve the experience.
  • Unix: Choosing the easy path

    Posted June 23, 2013 - 4:11 pm

    Wise men say that you should never choose the easy path but, instead, live life fully. But when it comes to moving around the Unix file system, easy is good. And bash's builtin shopt command can make maneuvering even the most complicated file system paths easier.
  • Unix: Rewriting history

    Posted June 16, 2013 - 3:35 pm

    The history feature in Unix shells can save you a lot of time when typing long, fairly repetitious commands, but don't count on it to accurately represent history.
  • Unix tip: Using Bash's regular expressions

    Posted May 5, 2013 - 8:37 pm

    Bash has quietly made scripting on Unix systems a lot easier with its own regular expressions. If you're still leaning on grep and sed commands to get your scripts to do what you need from them, maybe it's time to look into what bash can do on its own.
  • How to script: A Bash crash course

    Posted March 8, 2013 - 11:13 am

    An easy step-by-step guide to the Bash command-line shell and shell scripting.
  • Unix How-To: More Alias Quickies to Save You Time

    Posted September 29, 2010 - 3:50 pm

    Today's column is a grab bag of useful aliases that will save you some precious typing time. The sysadmins I know like to type as few characters as possible, so many of these are especially terse
  • How to repair a full Unix directory

    Posted May 29, 2010 - 8:03 pm

    What if you accidentally fill a Unix directory with so many files that the shell runs out of memory trying to remove them? A few easy techniques quickly bring the situation under control.
  • Unix Prompts for the Masses

    Posted September 30, 2009 - 2:54 pm

    New Unix users can quickly reach the (wrong) conclusion that Unix is not a very friendly operating system. After all, the commands will at first seem very cryptic, their prompts might reach halfway across their screens and some of the options preset into their accounts might turn out to be very annoying. In today's column, I suggest some options for changing your users' commands prompts to suit their fancy.

Join today!

See more content
Ask a Question