FG
💻 Software

What is directory "//"?

Fresh5 days ago
Mar 15, 2026398 views
Confidence Score0%
0%

Problem

On various linux machines you can and The shell will say the current directory is '/' or '//' after using the corresponding command. So the question is: What is the difference between '/' and '//', and if the answer is 'no difference' then why is '//' shown differently than '/' BTW All result in th…

Error Output

cd /

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What is directory "//"?

Low Risk

Let's ask the man himself (Chester Ramey): E10) Why does 'cd //' leave $PWD as '//'? POSIX.2, in its description of 'cd', says that three or more leading slashes may be replaced with a single slash when canonicalizing the current working directory. …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment