Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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.

  2. #2
    Linux 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.

  3. #3
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    with $cd // i get :
    Code:
    bash: //: is a directory
    i don't really know the meaning of multiple slashes though..
    Linux For Ever!

  4. $spacer_open
    $spacer_close
  5. #4
    Linux 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •