Using / and \

Hey, does anyone know why in Git Bash u use / for directories while in other situations \ is used?
just curious

I’m assuming you’re a Windows user?

I think Windows is the odd one out when it comes to directory paths.

On Windows, you’d write a path like C:\some folder\a file.txt.

On Linux, Unix etc… paths are written /usr/bin/home/a file.txt.

The forward slash convention in Bash likely comes from it’s origins on *nix systems. :slight_smile:

1 Like

ah, i’ve been led astray by Windows.
Thanks for your explanation!

1 Like