weird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 months agoThat is the waysub.wetshaving.socialimagemessage-square147fedilinkarrow-up1923
arrow-up1923imageThat is the waysub.wetshaving.socialweird@sub.wetshaving.social to linuxmemes@lemmy.world · 2 months agomessage-square147fedilink
minus-squarePup Biru@aussie.zonelinkfedilinkEnglisharrow-up1·edit-22 months ago- returns you to the previous path rather than repeat the last cd right? so cd - would undo the cd …
minus-squarekibiz0r@midwest.sociallinkfedilinkEnglisharrow-up1·2 months agoPoint 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 ../../../..
-
returns you to the previous path rather than repeat the last cd right? so cd - would undo the cd …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
andcd -
is better thancd foo/bar/baz/qux
andcd ../../../..