Change Directory with two dots (cd..)

Tony Arnold tony.arnold at manchester.ac.uk
Wed Apr 26 13:17:14 UTC 2006



Chris Neary wrote:
> 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.

If you want to keep track of where you are visiting, then pushd and popd
can be quite useful (they maintain a first in/last out queue, i.e., a
stack; of visited directories). Problem I have is that I have usually
cd'd to my new directory and only later wished I'd used pushd instead!

Regards,
Tony.
-- 
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold




More information about the ubuntu-users mailing list