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.
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.
with $cd // i get :
i don't really know the meaning of multiple slashes though..
bash: //: is a directory
Weird i have never noticed that.....and i dont knwo whats it used for.