One command to create and change directory

前端 未结 9 1098
执念已碎
执念已碎 2020-12-08 19:07

I\'m searching for just one command — nothing with && or | — that creates a directory and then immediately cha

9条回答
  •  醉酒成梦
    2020-12-08 19:45

    mkdir temp ; cd temp ; mv ../temp ../myname
    

    You can alias like this:

    alias mkcd 'mkdir temp ; cd temp ; mv ../temp ../'
    

提交回复
热议问题