Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

36
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ターミナルで一つ前にいたディレクトリに戻るコマンド。

Last updated at Posted at 2017-02-28

ターミナルで一つ前にいたディレクトリに戻るにはcd ../が使えることがわかりました。

例えば、ホームディレクトリの
/Users/your_user_nameにいたとして、
cd ~/Desktop/でデスクトップに移動しても、
cd ../を使えば、一つ前にいたディレクトリの/Users/your_user_nameに戻れます。

36
23
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Qiita Advent Calendar is held!

Qiita Advent Calendar is an article posting event where you post articles by filling a calendar 🎅

Some calendars come with gifts and some gifts are drawn from all calendars 👀

Please tie the article to your calendar and let's enjoy Christmas together!

36
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?