Skip to main content
12 events
when toggle format what by license comment
Feb 22, 2022 at 20:16 comment added Christian Herenz I learned about cd ~# from this answer. Although I read the official documentation for dirs, I did not find any clue regarding this useful feature there. Where would I have to look for official documentation of this feature?
Nov 11, 2019 at 10:38 comment added thoroc @BulatM. in that case you could even go one step further: mkdir -p navigate/dir{1,2,3} that will create the base dir at the same time
S Feb 24, 2018 at 21:24 history suggested hoijui CC BY-SA 3.0
feels nicer this way
Feb 24, 2018 at 19:52 review Suggested edits
S Feb 24, 2018 at 21:24
Feb 19, 2018 at 7:38 comment added anon @Jun, there's "mkdir dir{1,2,3}" to create 3 directories in one shot.
Jun 13, 2017 at 15:40 comment added phil294 what if the path contains spaces? ls "~2" is invalid syntax.
Oct 30, 2016 at 1:28 comment added rfabbri so its better for a more transient use case than setting a CDPATH?
Jun 15, 2016 at 23:39 comment added WuTheFWasThat you could also use a solution like fasd for this kind of workflow instead, though
Apr 12, 2016 at 15:50 comment added Scribblemacher +1 for actually giving some practical examples. It's easy to see what pushd/popd do from the man page, but dirs and cd ~# are not obvious at first.
Mar 17, 2016 at 13:18 comment added Jun Murakami And you can clear the stack by dirs -c
Mar 17, 2016 at 13:01 review First posts
Mar 17, 2016 at 13:06
Mar 17, 2016 at 12:56 history answered Jun Murakami CC BY-SA 3.0