Log in Sign up
Back to Discover
💻

Backslash

technology Maturity 11-13

A backslash is a small mark.

Teletype Wheatstone Perforator keyboard.jpg
Teletype Wheatstone Perforator keyboard.jpg
It looks like a tilted line. Computers use it to work. It helps tell the computer what to do. It is a helpful tool. Do you see it on a keyboard?

41 words

A backslash is a small mark.

Teletype Wheatstone Perforator keyboard.jpg
Teletype Wheatstone Perforator keyboard.jpg
It looks like a tilted line. It is the mirror image of a regular slash.
Mappa Teletype ASR-33.jpg
Mappa Teletype ASR-33.jpg
This mark was first seen in the 1930s. People use it in math and on computers. It can tell a computer to do something special. It can also help show where a file lives. Some people call it a hack or a whack. It is a very useful tool for computers.

79 words

A backslash is a small mark used in math and computing.

Teletype Wheatstone Perforator keyboard.jpg
Teletype Wheatstone Perforator keyboard.jpg
It is the mirror image of a regular slash. This mark was first seen in the 1930s. One old manual called it a "diagonal key."
Mappa Teletype ASR-33.jpg
Mappa Teletype ASR-33.jpg

Computers use the backslash in many ways. In many coding languages, it is an escape character. This means it tells the computer to treat the next mark in a special way. For example, it can tell a computer to start a new line. It can also help a computer show a real quote mark.

People also use the backslash to name files. In the MS-DOS system, it helps show the path to a file. A path is like a map that shows where a file lives. In some math work, it is used for integer division. This is a way to divide numbers that rounds the answer toward zero. In some parts of the world, the mark can look like a yen sign. This happens because of how old computer codes were made. Even so, computers still know it is a backslash.

185 words

The backslash is a small typographical mark. It is the mirror image of the common slash.

Teletype Wheatstone Perforator keyboard.jpg
Teletype Wheatstone Perforator keyboard.jpg
You will mostly find it in math and computing. People use many names for it. Some call it a hack, a whack, or a reverse slash. It is a very useful tool for digital work. It helps computers understand special instructions.

In many coding languages, the backslash works as an escape character. This is a way to change how a computer reads the next mark. For example, a backslash followed by the letter n tells the computer to start a new line. It can also help a computer show a real quote mark.

Mappa Teletype ASR-33.jpg
Mappa Teletype ASR-33.jpg
If a programmer wants to show a real backslash, they must type two of them. This tells the computer not to treat the second one as a special command.

This mark has a long history in technology. It was first documented in the 1930s. A 1937 manual from the Teletype Corporation shows it on a keyboard. In 1945, Teletype called it a "diagonal key."

Teletype Wheatstone Perforator keyboard.jpg
Teletype Wheatstone Perforator keyboard.jpg
Later, in 1960, IBM published a standard that included the symbol. In 1961, a man named Bob Bemer proposed using it for math symbols. The committee then added it to the early version of ASCII.

Computers also use the backslash to show file paths. A path is like a map for a file.

Mappa Teletype ASR-33.jpg
Mappa Teletype ASR-33.jpg
In 1983, MS-DOS 2.0 used the backslash for this job. This was done to keep things working with older versions of the system. Most Windows computers still use the backslash to separate folders in a path. In math, it can also mean integer division. This is a way to divide numbers that rounds the answer toward zero.

Sometimes, the backslash can look different depending on your computer settings. In some Japanese encodings, the code for a backslash shows a yen sign instead.

Teletype Wheatstone Perforator keyboard.jpg
Teletype Wheatstone Perforator keyboard.jpg
This happens because of how old computer codes were set up. Even when it looks like a yen sign, the computer still treats it as a backslash. This can sometimes cause confusion when people look at filenames. It is a strange quirk of how digital history works.

373 words

The backslash is a typographical mark used primarily in mathematics and computing. It serves as the mirror image of the common forward slash, also known as a solidus. While it may seem like a simple stroke, it is a vital tool in digital communication. It helps computers distinguish between literal text and special commands. Because of its many roles, people use various names for it. Some call it a hack, a whack, a reverse slash, or a slosh. Others use terms like backslant, backwhack, bash, or reverse solidus.

In the world of computer programming, the backslash often functions as an escape character. An escape character tells the computer to treat the following character in a special way. For example, in the C programming language, the sequence \n tells the computer to create a new line. Without the backslash, the computer would just see the letter 'n'. The backslash can also make a double quote appear as text rather than a command that ends a string. If a programmer needs to display an actual backslash, they must type two of them together: \\. This tells the computer that the second mark is a literal character rather than a command. In regular expression languages, the backslash can turn literal characters into metacharacters or vice versa.

Beyond programming, the backslash plays a key role in organizing computer files. In the MS-DOS 2.0 operating system released in 1983, the backslash was used to separate folders in a path. This was done to maintain compatibility with MS-DOS 1.0, where the forward slash was used for different commands. For instance, the forward slash was used as an option indicator in the command line. Microsoft eventually adopted the backslash as the standard convention for file paths. The Windows family of operating systems still follows this behavior today. While many modern systems accept both types of slashes, some individual Windows programs may only accept the backslash. Using the wrong slash can sometimes cause errors or even security lapses in certain software.

Teletype Wheatstone Perforator keyboard.jpg
Teletype Wheatstone Perforator keyboard.jpg

The history of the backslash begins in the 1930s. One of the first documented references appears in a 1937 maintenance manual from the Teletype Corporation. This manual included a photograph of a Kleinschmidt keyboard perforator, known as the WPE-3. In a later document from 1945, Teletype referred to the symbol as a "diagonal key."

Mappa Teletype ASR-33.jpg
Mappa Teletype ASR-33.jpg

In June 1960, IBM published an "Extended character set standard" that included the symbol at the code point 0x19. Later, in September 1961, an IBM researcher named Bob Bemer proposed adding several characters to the X3.2 standards committee. He described the backslash as a "reverse division operator." Bemer noted that the symbol was useful for creating logical operators in the ALGOL programming language. The committee adopted these changes into the draft of what would become the American Standard Code for Information Interchange, or ASCII. This historical development ensured the backslash became a permanent part of digital language.

In mathematics, the backslash symbol has specific meanings that differ from its use in computing. It is often used to represent the set difference between two groups. In certain contexts, it can also denote a right coset space. When describing computer algorithms, mathematicians sometimes define the backslash to represent integer division. This type of division results in an answer that rounds down to the nearest whole number. In specialized software like MATLAB and GNU Octave, the backslash is used specifically for left matrix divide. This is a distinct operation from the right matrix divide, which uses a forward slash.

Teletype Wheatstone Perforator keyboard.jpg
Teletype Wheatstone Perforator keyboard.jpg

One surprising aspect of the backslash is how it can appear as different symbols due to old encoding standards. In several Japanese encodings, such as ISO 646-JP and Shift JIS, the code point 0x5C is used for the yen sign (¥) instead of a backslash. Because this code point was used so extensively for the yen, many fonts, including MS Mincho, still display the backslash as a yen sign. This can lead to confusion when users look at filenames in MS-DOS environments. Similar issues occurred with other international encodings, where the backslash was replaced by characters like the Korean won (₩) or the German umlaut (Ö). Although modern Unicode has resolved these conflicts by giving every symbol its own unique code, these legacy systems still exist. This demonstrates how the history of early technology continues to affect how we see characters on our screens today.

739 words
🖼️ Images & Media (2)
File:Teletype Wheatstone Perforator keyboard.jpg
Teletype Wheatstone Perforator keyboard.jpg
File:Mappa Teletype ASR-33.jpg
Mappa Teletype ASR-33.jpg
Up Next
💻
ASCII
Technology
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.