Possible Duplicate:
Is there a one-liner that allows me to create a directory and move into it at the same time?
I know this is a very basic question but I can't seem to figure out what to search for to get the answer.
In linux/unix/ssh I know you can create a folder like this:
mkdir path/to/myfolder
And you can move to that folder like this:
cd path/to/myfolder
But is it possible to create it and move to it in one command, to prevent having to type the path twice?
~/.bashrc
if you're using Bash. – Sep 23 '12 at 20:22