Backslash (\) vs. Forward Slash (/)

Return to Phill Conrad's:         home page             CS8 page            CS16 page        

Introduction

In working with many software tools, programming languages and operating systems, it is crucial to distinguish between backslash and forward slash. Here's a way to remember which one is which.

Imagine the cursor walking across the screen as a person.

In English, we write from left to right. So the cursor moves across the screen from left to right as we type, like this:

Imagine that cursor as a person, facing in the direction he/she is walking:

person facing right

Now:

backslash forward slash stick figures leaning backwards and forwards.

 

Applications

Backslash is used for:

Forward slash is used for:

 


Copyright 2010, Phillip T. Conrad—Permission to copy for non-commerical academic purposes is granted provided credit is given—all other rights reserved. Thanks to F09 CS16 students Jordan Dyer and Matt Kwis for the original caricature of the author (used by permission). Bob Nieder helped me adapt it to the stick figure.



Valid XHTML 1.1 Valid CSS!