Basic Linux Command Example: 


Get help on Linux popd Command.


   Linux popd command is use to remove directories from stack on Linux system.  The Linux popd command is one of bash shell built in command.  The command example below show how to get popd command manual or help on Linux popd command using shell command, this help show information on how to use the Linux popd command, the popd command options and the arguments that can be use with Linux popd command.


Get Linux popd command help


  Execute help command and the name of Linux command that we want the help file, the example below we execute help command with -m option to get the help for popd command using the manpage format.

popd linux command

[linux@fedora11 ~]$ help -m popd


    popd - Remove directories from stack.



    popd [-n] [+N | -N]



    Remove directories from stack.


    Removes entries from the directory stack.  With no arguments, removes

    the top directory from the stack, and changes to the new top directory.



      -n        Suppresses the normal change of directory when removing

        directories from the stack, so only the stack is manipulated.



      +N        Removes the Nth entry counting from the left of the list

        shown by `dirs', starting with zero.  For example: `popd +0'

        removes the first directory, `popd +1' the second.


      -N        Removes the Nth entry counting from the right of the list

        shown by `dirs', starting with zero.  For example: `popd -0'

        removes the last directory, `popd -1' the next to last.


    The `dirs' builtin displays the directory stack.


    Exit Status:

    Returns success unless an invalid argument is supplied or the directory

    change fails.






    GNU bash, version 4.0.16(1)-release (i386-redhat-linux-gnu)

    Copyright (C) 2009 Free Software Foundation, Inc.

    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>


[linux@fedora11 ~]$


Keywords: popd, popd command, linux popd command, popd linux command, linux command popd, popd command manual, popd manual, popd help, help popd, command popd help, help popd command