• Home
  • About
  • Articles

Tip: Create and move to directory

August 12th 2009

Before my next post on database indexes, here’s a useful little function from the Advanced Command Line peepcode screencast (which I highly recommend).:

# Create and move to a directory in a single command
# Usage: take ~/Projects/tools/awesometer

take() {
  mkdir -p $1
  cd $1
}