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...

1 comment:

0xff said...

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

works on bash.

wslm