What is the diff between / and //
I am wondering what the difference between cd / and cd // is.
I am prompted to ask the question after encountering the following shell session: Code:
[root@stardot forum]# cd // TIA Will* |
There is no difference in those two cd commands, except that due to a small quirk in the shell, it prints the current path as // instead of /
Sometimes a script will end up with two /'s together in the middle of a path due to a / not being stripped off the end of a paramter - it makes no difference. (example: ./configure --prefix=/usr/ might result in a path /usr//bin being used - this will just be /usr/bin) |
All times are GMT -5. The time now is 01:21 AM. |