Why does Windows use backslashes?
Have you ever noticed that there is a small difference as follows.The same is the link but in Windows is C: Windows while on the web is https://yourdomain.com/ as well as on Linux, OS X and Android all use a slash '/'.Windows uses backslashes '' for directory and file paths, while nearly every other platform seems to use only forward slashes /, why is that?
Modern software has mostly auto-correction functions when you enter the slash incorrectly, so it doesn't matter which slash type you usually use but recognize the difference between the two types of slashes This crossover in Windows is sometimes also necessary.
Why does Windows use backslashes?
It is a historical story:For decades, exactly about 1970, Unix introduced a forward slash character that was a '/' character.This character acts as a directory separator.
It's hard to imagine, but the original version of Microsoft DOS, that MS-DOS 1.0 does not support any directory when it was released in 1981. Most of the utilities that come with DOS are written by IBM and they used this '/' character as a "conversion" character.
You can still see this exists until today in the command prompt.When you type dir / w, you have asked the dir command to run with the wide list format option, while typing dir c: means asking for the dir command to list the contents of the C: drive.The different types of slashes used here indicate you are specifying an option or directory path.(On Unix, characters - are used instead of the '/' character to indicate conversions.)
At that time, people didn't really care that they were using a character but on another operating system it was used for another purpose.
MS-DOS 2.0 introduced support for directories, but IBM also wanted to retain compatibility with the original DOS utilities as well as other programs and expected, '/' characters. Use as a conversion character.Microsoft used the '/' character as a conversion character on MS DOS, so they could not reuse it.So what should they do?They may have used "."same as DEC machines, but "."was used to distinguish between files and extensions.So they chose the "" character, quite like the '/' character and relatively intuitive.
Today's Windows may no longer be built on DOS, but you can still see that DOS's legacy still exists on Windows in a way that "backslashes" and other features like drive letters used for file systems on Windows.
Why do all other platforms use slashes '/'
Web browsers follow Unix conventions and use / for web addresses.Windows users often see forward slashes / when they enter the web address and backslash when they enter the location of the local directory, so this can be confusing.So are Unix-compliant sites, and so do other protocols like FTP.Even if you are running a web server or FTP server on a Windows machine, they will all use a forward slash '/' because that's what the protocol requires.
Other operating systems also use forward slashes for the same reason - the Unix convention.Linux is a Unix-like operating system, so they use the same type of slash.Mac OS X is a BSD-based platform, while BSD is also a Unix-like operating system.Other current operating systems such as Android, Chrome OS and Steam OS are also developed based on Linux, so it is understandable when they use the same type of slash together.
What is the problem here?
The more interesting question is whether this difference is really important.Browser and operating system developers seem to realize that users are confused about how to use these two types of characters, so they designed a feature to fix '/' and 'characters' themselves. .If you enter https: quantrimang.com into Google Chrome, Mozilla Firefox or Internet Explorer, the browser will automatically fix it to https://quantrimang.com/ and download the website normally.If you enter C: / Users / Public into Windows Explorer and press Enter, it will automatically be edited to C: UsersPublic and you will be taken to the correct location of the folder you are looking for.
DOS developers were not happy with this even in the early days, so they made DOS accept both "/" and "" characters for the path.You can still enter commands like cd C: / Windows / into the Command Prompt and you will be taken to the correct directory.
However, this useful feature does not work anywhere in Windows.If you enter the path like C: / Users / Public into the Open dialog and press Enter, you will see an error message that says the file name is invalid.There are other web-based applications that may also show you an error if you try to enter a path like https: quantrimang.com - it depends on whether the program supports your error correction.
Most of us often don't pay attention to the parallel existence of these two slash characters, but sometimes it doesn't matter.It would be great if all platforms use a consistent delimiter for directory paths, but Windows suffers from some compatibility issues, so Windows users still have to be temporary. ' living with floods'.
see more
- 15 things computer users should know
- How to enable or disable text suggestions on Windows 10
- How to fix the size and position of the Command Prompt window
- Change the slash to a dot in Excel format
You should read it
- Here's how to uninstall Windows 10 to return to using Windows 7 or 8.1
- The chart for the 10 most amazing versions of Windows
- Windows revolution and breakthrough changes through each version
- Summary of several logout methods on Windows 8 and Windows 10
- Looking back at 27 years of 'evolution' of Windows
- Instructions on how to upgrade from Windows XP to Windows 8
- How to change the date and time format on Windows?
- 4 ways to 'revive' Windows XP on Windows 10
- What is Windows Hello? How does Windows Hello work? How to install Windows Hello
- Instructions for setting up Windows Hello face recognition on Windows 10
- 9 Windows 8.1 errors have not been resolved
- How to download Windows 10 Theme for Windows 7
Maybe you are interested
How to fix the missing language bar error on Windows 11 extremely quickly
Turn off these visual effects to make Windows run smoother!
7 Ways to Customize Windows 11 Notepad
8 settings to change to make your Mac trackpad and keyboard work like Windows
How to add fonts to Word in Windows computer
How to use the file search command on Windows, find saved files