One command to create and change directory

前端 未结 9 1093
执念已碎
执念已碎 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:35

    You did not say if you want to name the directory yourself.

    cd `mktemp -d`
    

    Will create a temp directory and change into it.

提交回复
热议问题