I have been using the linux console for some time now. One thing that irritates me is that every time I create a new directory using mkdir
I have to cd
to change to it. Is there a single command solution to create and switch to the directory just created?
Right now I do:
mkdir php5
cd php5
can I do:
mkdir -someswitch php5
I want something simple and clean. A good example is git branch somebranch
which makes new branch and git checkout -b somebranch
which makes and switches to new branch.
man mkdir
ormkdir --help
. – Upstanding