Regarding the Single and the Double Dot within Directories

后端 未结 1 1571
天涯浪人
天涯浪人 2020-12-11 13:05

Whenever we use the command:

dir --> in Windows

and

dir -a --> in Unix

We see 2 kinds of dots:

相关标签:
1条回答
  • 2020-12-11 13:36

    its the same for both platforms (and web based programming)

    . represents the directory you are in and .. represents the parent directory.

    in HTML if you have a file eg: http://example.com/blog/index.html and you want to link to the image http://example.com/images/image.jpg you would put it in as such:

    <img src="../images/image.jpg" />
    

    As that tells the script to look in the PARENT directory and then images/image.jpg.

    0 讨论(0)
提交回复
热议问题