Use pushd and popd for faster CLI navigation
Use pushd and popd for faster CLI navigation
One of my favorite ways to save time on the command-line is to utilize the directory stack to jump between tasks. Today's article will show you how to do this and provide some tips for effective use.
What is the directory stack?
Most Linux environments have a way for you to put paths on a stack (push) and then take them off in reverse order (pop). This is useful when you have more than one directory that you need to switch between frequently. Let's take a look at how to do this.
The pushd command
Suppose you need to switch between your project: ~/src/myproject, your web-server: /opt/webserver7/logs and some code examples: ~/examples/othercode often.
Read full article from Use pushd and popd for faster CLI navigation
No comments:
Post a Comment