20 points

No idea when this happened but you can also use forward slashes in Windows. So typing c:/users into the Explorer address bar works.

permalink
report
reply
10 points

You can even mix and match! C:\tmp/file.txt is valid. Very helpful for cross-os compatibility.

permalink
report
parent
reply
3 points

Does only windows do this or do Linux and mac work with both slashes too ?

I thought linux was pretty strict with this

permalink
report
parent
reply
9 points

only windows, afaik. On linux \ is the escape symbol

permalink
report
parent
reply
3 points

Windows is the odd one out, everywhere else uses forward slash.

permalink
report
parent
reply
3 points

I use forward slashes in all of my software’s paths, so I don’t have to fiddle around with it when I’m porting to Linux (in the future, I’ll likely go from “dev on Windows, port to Linux” to "dev on Linux, port to Windows).

permalink
report
parent
reply
3 points
*

Beat me to it. It works in CMD/PowerShell too. It’s easier to just train your muscle memory to always use / regardless of platform

permalink
report
parent
reply
1 point
*

This only works because MS gave in and added some path normalization. The actual path-component separator is still backslash. Sometimes it doesn’t work right, like in cmd if you try and do cd and use forward slashes then autocomplete won’t work even though the command itself works fine with forward slashes.

permalink
report
parent
reply
1 point
*

I didn’t even knew I had to use the backslash

permalink
report
parent
reply
13 points

Linux is the force itself, Mac and Windows are both stormtroopers that try to shoot each other but don’t hit.

permalink
report
reply
16 points

Or rather, being tech savvy is the force. You can then choose sides. Personally I’m with the open-force community.

permalink
report
parent
reply
2 points

You have my first comment save on lemmy, stranger.

permalink
report
parent
reply
11 points

This is what happens when you have Windows coming out of the CP/M micro operating system family and everybody else is some kind of Unix derivative.

permalink
report
reply
9 points

to the top, this post belongs

permalink
report
reply
3 points

Dont worry guys, we can deal with this.

Boots up beatsaber

permalink
report
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

Hint: :q!


Sister communities:

Community rules (click to expand)

1. Follow the site-wide rules
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, and wants to interject for a moment. You can stop now.

Please report posts and comments that break these rules!

Community stats

  • 6.5K

    Monthly active users

  • 1.3K

    Posts

  • 71K

    Comments