Change Directory with two dots (cd..)

Chris Neary hello at poetofcode.org
Wed Apr 26 12:06:51 UTC 2006


On a related note, is it the hyphen which is used with cd to 'ping-pong'
between current and previous-visited directories? I think I read this in
Linux Desktop Hacks, but can't remember it now.

cd htdocs
dir: htdocs
cd ~
dir: /home/$USER
cd -
dir: htdocs

Is that right? A much underused and not-well-known time-saving feature. If I
could actually remember to use it myself maybe I'd have a point here.

`cd' without any arguments is useful too - that's one I ALWAYS use (if you
don't know, it basically just performs `cd ~', but is quicker to type).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060426/569ca4ee/attachment.html>


More information about the ubuntu-users mailing list