一个命令创建和更改目录 [英] one command to create and change directory

查看:189
本文介绍了一个命令创建和更改目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在搜索一个命令—没有与&& | —它创建一个目录,然后立即将当前目录更改为新创建的目录。 (这是一个有人为他的考试linux使用的问题,他做了一个新的命令,这样做,但没有给他点。)这是在一个debian服务器,如果这很重要

I'm searching for just one command — nothing with && or | — that creates a directory and then immediately changes your current directory to the newly-created directory. (This is a question someone got for his exams of "linux-usage", he made a new command that did that, but that didn't give him the points.) This is on a debian server if that matters

推荐答案

我相信您正在寻找:

mkdir project1 && cd $_

这篇关于一个命令创建和更改目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆