Make a directory and change in to it

$* says to take all the command line arguments and put them together as one string. This is needed if you want to make a directory with spaces in the filename.

mkcd () {
  mkdir -p "$*"
  cd "$*"
}

Stolen from lifehacker.



Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 18.116.86.132
To prevent spam please submit by clicking the kitten: