• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

pushd

pushd

pushd Pushes a directory onto the directory stack.
pushd [-p] [-l] [-n | -v] [<dir> | +<n>]

pushd

Without arguments, pushd exchanges the top two elements of the directory stack. If pushdtohome is set, pushd without arguments does pushd ~, like cd.
-p Overrides the pushdsilent shell variable. (The pushdsilent shell variable can be set to prevent pushd from printing the final directory stack.)
-l Lists the output in long form.
-v Prints one entry per line, preceded by their stack positions.
-n Wraps entries before they reach the edge of the screen.
<dir> Pushes the current directory into the stack and changes to the specified <dir>.
+<n> Rotates the <n>th directory to the top of the stack and changes to that directory.
If both -n or -v are specified, -v takes precedence.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint