Friday, June 1, 2012

Just some useful navigating command

echo $PWD shows the current directory


echo $OLDPWD shows the most recently visited directory


cd - takes you to the last directory that you were.

in any directory (.) refers to the current directory and (..) refers to the parent direstory



thus cd . let's you remain in the current directory


cd .. takes you to the parent directory

No comments:

Post a Comment