Results 1 to 2 of 2
Hi all, I don't know how many of you guyz came across this, type Code: cd // ls what's the difference between cd / and cd // Do we have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-24-2007 #1
cd // ?
I don't know how many of you guyz came across this,
cd // ls
Do we have special // directory or is it some kind of a bug
- 12-26-2007 #2
- Join Date
- Feb 2005
Neither. Multiple slashes are folded to one for convenience so /home/mydir and ///////home///////////////mydir as equivalent (though the latter takes more typing). It means, for example, that you don't have to worry about whether your HOME variable ends with a slash when you do something like "cd $HOME/myfiles".