a newer one »Goldenrod

pushd popd dirs

Snippet
# push a directory onto the stack
pushd {dir}
 
# pop the last directory off the stack, change to the next directory in the stack
popd 
 
# view the stack in a numbered list
dirs -v 
 
# pull the nth directory out of the stack, put it at the top, and change to it
pushd +n
 
# remove the nth directory from the stack, don't change to it or anything
popd +n

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.