top of page
Navigation

Marcel keeps track of the current directory, and a directory stack, as in other shells. (The current directory is always the top item on the directory stack.) The commands for operating on directories should be familiar:

  • pwd: prints the current directory.

  • cd: Change the current directory to the one specified on the command line.

  • pushd: Push the specified directory onto the directory stack. Without arguments, swap the top two directory stack items. This causes the current directory to change.

  • popd: Remove the top item on the directory stack, causing the current directory to change.

  • dirs: Prints the directory stack, starting with the current directory. (The directory stack simply reports the value of the DIRS environment variable.)


 

bottom of page