Results 1 to 4 of 4
$cd //
Hi
Thanks in advance
you have been used cd command a lot ,$cd / or $cd /mnt ...but have you been used this command :$cd // .I'm not ...
- 07-26-2004 #1Just Joined!
- Join Date
- Jul 2004
- Location
- Iran
- Posts
- 20
$cd //
$cd //
Hi
Thanks in advance
you have been used cd command a lot ,$cd / or $cd /mnt ...but have you been used this command :$cd // .I'm not joking with you,try it.$cd // is as the same as $cd /(ls command can show you) ,but why? . as you know there isn't such // dir in linux.(by default) .ok .so they are the same .on the other hand ,found something that made them differ. used locate command to find what are the content of each one. there was lots of files and folders in / but locate command couldn't find // in database.
there are many of them .for example:
cd ..//..// or
cd //..//.. or
cd /./././. or
cd ././././ or
cd ./////. .............
I googled , but nothing found. and there was no faq to help me.
Thanks for your consideration.
- 07-26-2004 #2Linux Newbie
- Join Date
- May 2004
- Location
- Boston, MA
- Posts
- 246
You can do this with any directory (add as many slashes as you want to the end of the name). I don't know why this functionality exists though.
- 07-27-2004 #3Linux Engineer
- Join Date
- May 2003
- Location
- Greece / Athens
- Posts
- 1,169
with $cd // i get :
i don't really know the meaning of multiple slashes though..Code:bash: //: is a directory
Linux For Ever!
- 07-27-2004 #4Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
Weird i have never noticed that.....and i dont knwo whats it used for.
Regards
Andutt


Reply With Quote
