[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cd "previous directory" ??

From: Joanna Cheng
Subject: Re: cd "previous directory" ??
Date: Tue, 21 Feb 2012 12:02:33 +1100

On Tue, Feb 21, 2012 at 11:56 AM, Liam Groener <address@hidden> wrote:
On Feb 20, 2012, at 3:26 PM, Muhali wrote:

n unix shells one has the command 'cd -' which brings one back to the
previous directory.

Is there anything like that in octave? And if not, is it easy to implement?

cd .. 
works for me just like in unix. Maybe it goesn't work in Windows, if that is what you are using? (I'm on a Mac, but I've got to believe it works in linux too.)

Hi Liam,

"cd .." is not the same functionality as "cd -". Observe:

address@hidden:~$ pwd
address@hidden:~$ cd test1/test2/
address@hidden:~/test1/test2$ cd -
address@hidden:~$ cd -

It seems to have a limited memory (it only remembers the immediately previous point in the directory tree you were in).

I am not sure if Muhali requires this specific functionality, however.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]