What exactly is pushd and popd? I looked for executable by those names on my machine (Ubuntu 8.04), but did not find any.
Douglass Clem crashsystems.net Public Key: http://crashsystems.net/pubkey.asc On Tue, Oct 14, 2008 at 1:38 PM, Don Delp <[EMAIL PROTECTED]> wrote: > > On Tue, Oct 14, 2008 at 11:30 AM, Andrew Farnsworth <[EMAIL PROTECTED]> > wrote: > > Haven't seen on in a bit so thought I would post the following link: > > > > > http://www.thegeekstuff.com/2008/10/6-awesome-linux-cd-command-hacks-productivity-tip3-for-geeks/ > > > > This article talks about several "hacks" to the cd command but it really > > discusses current directory manipulation, not restricting itself to just > the > > cd command. > > > > I particularly like Hack #4 and #5 which I have extracted snippets of > from > > the article. I knew about pushd and popd but did not know about cd - > which > > is very useful. > > > > > > > > Hack #4: Use "cd -" to toggle between the last two directories > > > > You can toggle between the last two current directories using cd - as > shown > > below. > > > > Hack #5: Use dirs, pushd and popd to manipulate directory stack > > > > You can use directory stack to push directories into it and later pop > > directory from the stack. Following three commands are used in this > example. > > > > * dirs: Display the directory stack > > * pushd: Push directory into the stack > > * popd: Pop directory from the stack and cd to it > > > > > > MAIH... > > > > Andy > > > > I recently learned about "cd -" and I use it constantly now. It's > like the "Jump" feature on most TVs. I haven't found myself in a > situation complicated enough to mess with pushd and popd. If it's > really bad, I tend to default to using Klipper and highlighting paths > that I need to get back to. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NLUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nlug-talk?hl=en -~----------~----~----~----~------~----~------~--~---
