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: 3.236.116.27
To prevent spam please submit by clicking the kitten: