In the Windows command line, \ is the path separator and / is for options.
That diverges from the Unix command line, where / is the path separator and \ is for escaping special characters ("use the literal meaning of this character, rather than the special meaning"). The Unix command line uses hyphen (-) for options.
Most programming languages use \ for escaping special characters, so \" would often be a literal quotation mark and \\ would often be a literal backslash. For example, in many languages writing
"\""
will give a one-byte-long string containing a quotation mark character. Here the backslash escapes the second quotation mark, cancelling out its meaning of ending the string.https://en.wikipedia.org/wiki/Use%E2%80%93mention_distinctio...
https://en.wikipedia.org/wiki/Escape_character
The second article mentions a further subtlety, which is that escaping a character that doesn't have a special meaning sometimes adds a special meaning. For example, "\t" is used in many programming languages to write the tab character (ASCII 9), while "\n" is used to write the newline character (ASCII 10).
Trial and error, every time on that one.
“It follows that the participants were not in a state of complete ignorance. Rather, they relied upon extraneous knowledge of either a general or a specific nature (bias and schema hypotheses, respectively), whose importation into this domain was in fact invalid. The resulting belief that coin portraits face left was not right.”
For the names? The little stick figure is leaning forward or backward in reading order.
But at first I know I had to remember them like this: "Top is left side, or top is right side?" like where is the literal top of the shape at. Then I made a little memory aid out of that.
Comparing the usage in OSes: You can imagine the backslash as the front of the W in Windows, and the forward slash as the front of an italic L for Linux, for example. Or any of a million other ways to think about it, probably.
My sympathies though, it's not fun or cool and while the post title may not describe my feeling at the moment, it's fun to see someone else working through it like this, because we all have little battles to fight along the journey.
Backslash - Not used much except in Linux, C, etc. As others have said, path separations, quoting characters, etc. \n is a linefeed in most quoted strings. I describe this as the slash not under the question mark
Now, paths on Unix use / because \ is already in use... so you end up with /home/mike
Lastly, DOS, and thus Windows, had to use \ because they needed to be as different as possible from Unix (to avoid lawsuits)... and thus you end up with C:\DOS
All letters in cursive and italic are slanted to the right. Iceland becomes Iceland, with top part of each letter going right and bottom part going left.
So, if you just wanted to write a slash in cursive, you'd end up with /. That's just a normal slash, a result of writing a line according to the general direction of the writing.
And the slash that defies the general direction of the writing is 'backslash'. For this, you have to move your hand back from your normal writing position.
If you're asking me how to remember the difference between them, I just imagine I'm the line, then the question is: does it look like I'm falling forward or backward.
edit: also, you can try anchoring, a memory technique
But back in the olden days, I thought \ is what windows uses in paths, / is what URLs use.