• Pup Biru@aussie.zone
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 day ago

      - returns you to the previous path rather than repeat the last cd right? so cd - would undo the cd …

      • kibiz0r@midwest.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        Point was: most of the time I see someone spending time counting the requisite number of ..s, all they really wanna do is “go back to where I was before”.

        cd foo/bar/baz/qux and cd - is better than cd foo/bar/baz/qux and cd ../../../..