Is there a shortcut to mkdir foo and immediately cd into it?

Posted by macek on Super User See other posts from Super User or by macek
Published on 2010-06-15T14:22:06Z Indexed on 2010/06/15 14:23 UTC
Read the original article Hit count: 227

Filed under:
|
|
|
|

This is something I do frequently

$ mkdir foo
$ cd foo

This works as a single command, but it's more keystrokes and saves no time.

$ mkdir foo && cd foo

Is there a shortcut for this?

© Super User or respective owner

Related posts about bash

Related posts about terminal