~n on the command-line to reference the nth element of the stack with (where n is 0, 1, 2, and so on)."/>

Reference the Directory Stack

If you use pushd and popd to maintain a directory stack, use ~n on the command-line to reference the nth element of the stack with (where n is 0, 1, 2, and so on).

If you use pushd and popd to maintain a directory stack, use ~n on the command-line to reference the nth element of the stack with (where n is 0, 1, 2, and so on).

Martin Streicher is the founder of Locomotive, an expert Rails consultancy. Formerly, he was Editor-in-Chief of Linux Magazine from 2002 to 2007. You can contact him at martin.streicher@linux-mag.com and follow him on Twitter.

Comments are closed.