Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8745707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:04:38+00:00 2026-06-13T12:04:38+00:00

I use both windows and Linux and often I got confused when I use

  • 0

I use both windows and Linux and often I got confused when I use command lines…

1>MS-DOS use backslash like C:\Documents and Settings\user_name\Desktop\

2>Linux use slash like /usr/lib

3>URL seems to use slash like http://stackoverflow.com/questions/ask

4>C++/C programmer often use backslash as the escape character like \n or \t or \"

Item 1-3 can be confusing plus the effect of item 4.
I am wondering why MS-DOS doesn’t use (forward) slash just as everything else, and then we can only use the special backslash as the escape character.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:04:39+00:00Added an answer on June 13, 2026 at 12:04 pm

    This has been answered at superuser: https://superuser.com/questions/176388/why-does-windows-use-backslashes-for-paths-and-unix-forward-slashes

    Let me quote the gist of it:

    MS-DOS 2.0 introduced \ as the directory separator in the early 1980s. The reason / was not used is that MS-DOS 1.0 was already using / to introduce command-line options. It took this usage of / from CP/M, which took it from VMS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some scripts that I often use in both windows(cygwin) and linux, I'd
I'd like a GUI framework that works on both Windows and Linux. I'm confused
I've got hold of libarchive and built the examples on both Windows and Linux
I would like to use both of these library on the same page but
I'd like to be able to use both the google-api-client gem to do service
I use git to manage my dotfiles, I use both linux and mac osx
I want to use EC2 for some reasons and EC2 provides both windows and
Most people use gcc on Linux and MSVC compiler on Windows. I have recently
We have functions to allocate memory on stack in both in windows and Linux
I use 3 different computers and 4 separate OS's (Windows and Linux) and want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.