-
-
Save vastus/18aaa15f807345ea35c2 to your computer and use it in GitHub Desktop.
pushd/popd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10:32 [~] $ cd /tmp/ | |
10:32 [tmp] $ mkdir -p eka/toka/kolmas | |
10:32 [tmp] $ pushd eka/ | |
/tmp/eka /tmp | |
10:33 [eka] $ pushd toka/ | |
/tmp/eka/toka /tmp/eka /tmp | |
10:33 [toka] $ pushd kolmas/ | |
/tmp/eka/toka/kolmas /tmp/eka/toka /tmp/eka /tmp | |
10:33 [kolmas] $ pwd | |
/tmp/eka/toka/kolmas | |
10:33 [kolmas] $ popd | |
/tmp/eka/toka /tmp/eka /tmp | |
10:33 [toka] $ popd | |
/tmp/eka /tmp | |
10:33 [eka] $ popd | |
/tmp | |
10:33 [tmp] $ pwd | |
/tmp | |
10:33 [tmp] $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment