Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell EMC Metro node 7.1 CLI Guide

PDF

pushd and popd commands

  • Use the pushd directory command to save the current directory, and jump to the specified directory.

    Once a directory is added to the pushd stack, use the pushd command with no argument to switch back to the previous directory.

    In the following example, pushd switches between the clusters and monitoring parent contexts:

    VPlexcli:/clusters/cluster-1/directors/director-1-1-A> pushd /monitoring/directors/director-1-1-A
    [/monitoring/directors/director-1-1-A, /clusters/cluster-1/directors/director-1-1-A, /monitoring/directors/director-1-1-A]
    VPlexcli:/monitoring/directors/director-1-1-A> pushd
    [/clusters/cluster-1/directors/director-1-1-A, /monitoring/directors/director-1-1-A, /monitoring/directors/director-1-1-A]
    VPlexcli:/clusters/cluster-1/directors/director-1-1-A> pushd
    [/monitoring/directors/director-1-1-A, /clusters/cluster-1/directors/director-1-1-A, /monitoring/directors/director-1-1-A]
    VPlexcli:/monitoring/directors/director-1-1-A>
  • Use the dirs command to display to the current context stack:
    VPlexcli:/clusters/cluster-1> dirs
    [/clusters/cluster-1, /, /, /clusters/cluster-1/directors/director-1-1-A/hardware/ports/A5-GE01, /]
  • Use the popd command to remove the last directory saved by the pushd command and jump to the new top directory.

    In the following example, the dirs command displays the context stack saved by the pushd command, and the popd command removes the top directory, and jumps to the new top directory:

    VPlexcli:/clusters/cluster-1/directors/director-1-1-A> dirs
    [/clusters/cluster-1/directors/director-1-1-A, /monitoring/directors/director-1-1-A]
    VPlexcli:/clusters/cluster-1/directors/director-1-1-A> popd
    [/clusters/cluster-1/directors/director-1-1-A]
    VPlexcli:/monitoring/directors/director-1-1-A>

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\