lily — 12/27/2023, 7:21:29 PM

WAIT HOLY SHIT I JUST FOUND OUT ABOUT cd -

♥ 6 ↩ 0 💬 8 comments

comments

grippins:

what does that do is it just cd ..

12/27/2023, 7:39:09 PM
lily:

no, it’s like this:

lily : / % echo $OLDPWD

lily : / % cd ~
lily : ~ % echo $OLDPWD
/
lily : ~ % cd Desktop
/Users/Liliana Newton/Desktop
lily : ~/Desktop % echo $OLDPWD
/Users/Liliana Newton
lily : ~/Desktop % cd -
/Users/Liliana Newton
lily : ~ % echo $OLDPWD
/Users/Liliana Newton/Desktop
lily : ~ % cd -
/Users/Liliana Newton/Desktop
lily : ~/Desktop % echo $OLDPWD
/Users/Liliana Newton
lily : ~/Desktop %
12/27/2023, 8:35:23 PM
radi8:

no it just goes to the last used directory?

12/27/2023, 9:09:41 PM
radi8:

so*

12/27/2023, 9:09:45 PM
lily:

yes

12/27/2023, 9:18:36 PM
grippins:

oh thats cool

12/28/2023, 4:52:52 PM
owl:

So it's like using .. when linking files together in HTML?

12/28/2023, 11:55:12 PM
lily:

that’s what @rivulet asked and i said no and explained what it did

12/29/2023, 12:33:27 AM