Skip to main content
added 14 characters in body
Source Link
Mercury
  • 301
  • 2
  • 4

Let's say I did the above since I would like to navigate back to those folders I documented! (using popd, instead of typing the relative or absolute path of each dir I want to go back into).

You can even delete a specific entry from the dir stack-stack:

Hope that using the words "documenting""documenting" or thinkthinking about the dir stack-stack as some kind of Db simplifies the concept!

Let's say I did the above since I would like to navigate back to those folders I documented!

You can even delete a specific entry from the dir stack:

Hope that using the words "documenting" or think about the dir stack as some kind of Db simplifies the concept!

I did the above since I would like to navigate back to those folders I documented! (using popd, instead of typing the relative or absolute path of each dir I want to go back into).

You can even delete a specific entry from the dir-stack:

Hope that using the words "documenting" or thinking about the dir-stack as some kind of Db simplifies the concept!

added 14 characters in body
Source Link
Mercury
  • 301
  • 2
  • 4

pushd [folder_name] - will cd tointo [folder_name] and will document the destination which is [folder_name] in a dir stack-stack. whileWhile the top directory in the stack will always be the current dir you are in.

popd - will firstwill cd you into the directory recorddirectory record which is ondocumented at the top of the stack then and then remove the documentation (remove it fromfrom the dir stack-stack).

dirs - Will print the dir stack-stack (canwhich can be treated as the dir Db where the leftmost entry is the current directory (top of the stack).

pushd [folder_name] - will cd to [folder_name] and will document the destination which is [folder_name] in a dir stack while the top directory in the stack will always be the current dir you are in

popd - will first cd you into the directory record which is on top of the stack then and remove the documentation (remove it from the dir stack)

dirs - Will print the dir stack (can be treated as the dir Db where the leftmost entry is the current directory (top of the stack)

pushd [folder_name] - will cd into [folder_name] and will document the destination which is [folder_name] in a dir-stack. While the top directory in the stack will always be the current dir you are in.

popd - will cd into the directory record which is documented at the top of the stack and then remove the documentation (from the dir-stack).

dirs - Will print the dir-stack (which can be treated as the dir Db where the leftmost entry is the current directory (top of the stack).

added 35 characters in body
Source Link
Mercury
  • 301
  • 2
  • 4

The pushd/popd is such a simple concept which took me awhile to comprehend since people tend to teach it by defining these commands as commands that 'manipulate the directory stack' which in my opinion is very confusing.

popd - will first cd you into the directory record which is on top of the stack then and remove the documentation (remove it from the dir stack)

The pushd/popd is such a simple concept which took me awhile to comprehend since people tend to teach it by defining these commands as commands that 'manipulate the directory stack' which in my opinion is confusing.

popd - will first cd you into the directory record which is on top of the stack then and remove it from the stack

The pushd/popd is such a simple concept which took me awhile to comprehend since people tend to teach it by defining these commands as commands that 'manipulate the directory stack' which in my opinion is very confusing.

popd - will first cd you into the directory record which is on top of the stack then and remove the documentation (remove it from the dir stack)

Some typo mistakes
Source Link
Loading
Source Link
Mercury
  • 301
  • 2
  • 4
Loading