Slashes
Explore the uses of backslashes and forward slashes in operating systems and code, including path dividers and permissions.
There are 2 kinds of slashes: the backslash and the forward slash.
Backslash ( \ )
| Use | Example |
|---|---|
| Windows operating systems use backslashes in URL and URI paths. When writing instructions for Windows users and developers, always include the *nix path first, followed by the Windows path. See the following example: |
|
| Backslashes are used in code. |
|
Forward slash ( / )
| Meaning | Example |
|---|---|
| *nix operating systems use forward slashes as a path divider. When writing instructions for *nix users and developers, always include the *nix path first, followed by the Windows path. |
|
| Forward slashes can mean "and", "divide by", "or", "per", or "with". | Read/write permissions |
| Linux or Windows | Linux and/or Windows |
| All registration information is written to and stored in the database. | All registration information is written to/stored in the database. |
| An 8 CPU, 16 GB memory machine can achieve 50 to 60 Mb per second throughput. | An 8 CPU, 16 GB memory machine can achieve 50 to 60 Mb/second throughput. |
| Read/write permissions | Read-write permissions |