pushd and popd
A pair of very useful commands,
pushdsaves the current directory and (optionally) changes to a different one;popdreturns you to the saved directory:$ pwd /home/you/directory $ pushd /somewhere/far/away/in/the/filesystem $ pwd /somewhere/far/away/in/the/filesystem $ cd /somewhere/else $ cd /yet/another/place $ popd $ pwd /home/you/directory
I use these constantly but it seems lots of folk aren’t aware of them. Very useful if you have a couple of directories in a build tree you need to jump between and keep having to type in.
-
propertytrac liked this
-
subclassretr liked this
-
relevantdefr liked this
-
hint liked this
-
carlosliu liked this
-
mikethecoder reblogged this from onethingwell
-
ported liked this
-
mcx liked this
-
tokanizar liked this
-
stevenla reblogged this from onethingwell
-
jhnsn liked this
-
kxr liked this
-
redcloud liked this
-
internetopia liked this
-
onethingwell posted this