I've entered a command cd //
instead of cd /
by mistake and instead of getting an error as I'd expect the shell (Bash) showed a prompt as if I'm in the //
directory:-
<username>@<hostname>://$
<username>@<hostname>://$ pwd
//
Listing the content of the directory shows that it is the same as /
.
So what exactly cd //
do and what's the difference from cd /
?
Actually it means nothing and is ignored.
From the Bash FAQ E10::
Also the Unix standards states: