Friday, July 17, 2009

cd // ??

I executed the following command by mistake instead of "cd .."
  • cd //
and strangely i was in some folder //
When I tried the command "pwd" i got the output as "//".
When I tried the command "ls" i got the same output as if it was the "/" directory.
When I tried the command "cd .." I was in the same directory as happens in "/" directory.
So I could conclude that it is the same "/" directory. But its existence did not make any sense then.

No comments:

Post a Comment

 
Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 2.5 Generic License.