' ../' command to navigate to parent directory command doesn't work in my git bash terminal or in powershell

I’m trying to use my new command line knowledge in the real world, installing open source software using the command line. The command ‘…/’ which we learned is supposed to cd to the parent directory, never works in either git bash or windows powershell. In powersehll get the error message “…/ : The term ‘…/’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.”

in git bash I get the error message “bash: …/: Is a directory”

If I write out the name of the parent directory, it works in both terminals. What am I missing?

.. is hard-link on *nix systems, so cd ../ will work on git-bash, but not powershell

when you want to change directory (cd) to the parent directory, you do have to use cd ../

1 Like