Wednesday, November 02, 2005

unix tip: return to previous directory

for linux if u want to return to previous directory u can type.
eg:

$ cd -

this also works for solaris & hpux. ooopss also works for aix, but if not working u can try this.
$ cd ~-

i suspect it's depend on your shell... hmmm no idea...

2 comments:

Rozita said...

Hi Ami,

How are you ? wishing you Selamat Hari Raya ...

Take care..

Ita

mnajem said...

boleh guna "cd" sahaje utk ke $HOME anda. tak perlu ~ atau - pun.

works on bash.

wslm