<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anatofuz</author_name>
  <author_url>https://blog.hatena.ne.jp/anatofuz/</author_url>
  <blog_title>Acme::AnaTofuZ-&gt;new;</blog_title>
  <blog_url>https://anatofuz.hatenablog.com/</blog_url>
  <categories>
    <anon>shell</anon>
  </categories>
  <description>意外と使えるけれどみんなあまり知らないlinuxコマンドテクニックです TL;DR cd -で直前にいたディレクトリにいける popd でディレクトリスタックに溜まっているディレクトリを移動できる dirsでディレクトリスタックを参照 pushd でディレクトリスタッにカレントディレクトリをいれられる cd - 普段ディレクトリを移動する際は cd を使いますが，引数として-を与えてあげると違った挙動をします． 例えば最初にルートディレクトリに移動，次にホームディレクトリ以下のsadboxに移動してみます / ❯❯❯ cd / / ❯❯❯ ls Applications Volumes hom…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanatofuz.hatenablog.com%2Fentry%2F2018%2F05%2F18%2F202717&quot; title=&quot;意外と使えるcd - とdirsコマンド - Acme::AnaTofuZ-&amp;gt;new;&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/anatofuz/20180518/20180518200330.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-05-18 20:27:17</published>
  <title>意外と使えるcd - とdirsコマンド</title>
  <type>rich</type>
  <url>https://anatofuz.hatenablog.com/entry/2018/05/18/202717</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
