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 8783041
In Process

The Archive Base Latest Questions

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

I accidently types cd // and was surprised to see OS X take me

  • 0

I accidently types cd // and was surprised to see OS X take me to a directory called //. It appears to be the root directory, but I am wondering why the cd // command did not throw an error.

Does // have any special meaning?

Seans-MacBook-Pro:/ sean$ cd //
Seans-MacBook-Pro:// sean$ pwd
//
Seans-MacBook-Pro:// sean$ ls
Applications            archive             net
Incompatible Software       bin             opt
Library             cores               private
Network             dev             sbin
System              etc             tmp
User Guides And Information home                usr
Users               mach_kernel         var
Volumes             mds
Seans-MacBook-Pro:// sean$ cd /
Seans-MacBook-Pro:/ sean$ ls
Applications            archive             net
Incompatible Software       bin             opt
Library             cores               private
Network             dev             sbin
System              etc             tmp
User Guides And Information home                usr
Users               mach_kernel         var
Volumes             mds

EDIT

I also noticed that cd ///, cd //// etc all resolve to root, and do not give an error. Only cd // is registered as being in the // directory.

Seans-MacBook-Pro:~ sean$ cd ///
Seans-MacBook-Pro:/ sean$ cd //
Seans-MacBook-Pro:// sean$ 
  • 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-13T20:43:40+00:00Added an answer on June 13, 2026 at 8:43 pm

    The / character is used as a separator, and – generally – any number of them can be collapsed into a single one. (This happens at the shell level, so when bash is parsing your input, for example)

    This is also another way to write /Users/Sean/ – ////Users////Sean//. However, the “//” is slightly special in some cases. You’re still at the root (/) but bash does not collapse it immediately.

    For more information, see this SuperUser post:
    https://superuser.com/questions/389338/which-directory-does-path-represent-in-linux

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

Sidebar

Related Questions

I'm pretty sure I've just accidently turned something on / off... but what ,
I was writing a metaclass and accidentally did it like this: class MetaCls(type): def
accidently my code suggestion box [ the box when we start typing it shows
I accidently externalised all my strings in an eclipse java project a week ago.
I was accidently using the gh-pages branch so now it has become the most
I think I may have accidently disabled stylecop in my Visual Studio 2008 enviroment.
I created a SharePoint sub-site, and accidently deleted all permissions groups except for the
This is the most bizarre question I've ever asked. I'm not even sure how
I have a class called Parent , and I'm storing these object's in the
I'm hoping someone can help me see the real value in these tests because

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.