On various linux machines you can
cd /
and
cd //
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
cd ///
cd ////
cd /////
All result in the shell saying the current directory is '/'
Heres an example session:
[user@host /]$ cd //
[user@host //]$ cd /
[user@host /]$ cd //
[user@host //]$ cd /
[user@host /]$
cd //in csh or zsh and thenpwdit will show just '/' – Doug Harris Oct 14 '09 at 17:24cd //usr/bingives "//usr/bin", butcd /usr//bingives "/usr/bin" (in Bash). – Dennis Williamson Oct 14 '09 at 18:40