What is an Absolute Pathname vs a Relative Pathname

前端 未结 3 1016
Happy的楠姐
Happy的楠姐 2021-01-26 08:08

Like the title says, what is the difference between an absolute and relative pathname? I\'m taking a Computer Organization class right now, and the lecture I\'m in is a crash co

3条回答
  •  醉酒成梦
    2021-01-26 08:37

    • An absolute path starts with the character /.
    • A relative path does not.

    The literal wording from the POSIX standard:

    [A relative path is] A pathname not beginning with a character.

    [An absolute path is] A pathname beginning with a single or more than two characters.

提交回复
热议问题