Where does '.' and '..' come from?

后端 未结 3 421
青春惊慌失措
青春惊慌失措 2021-02-01 03:06

What\'s the story behind our massive repitition of ./foo and cd ... Where do these two . and .. come from? Where could they b

3条回答
  •  遥遥无期
    2021-02-01 03:19

    I'm sorry I can't answer properly, but I can recommend these links:

    • The Evolution of the Unix Time-sharing System and
    • A Brief history of the BSD Fast File System

    for some interesting historical notes on early file systems and their use.

    Other than that, the earliest reference I've found is the 1974 paper "The UNIX Time-Sharing System" by Dennis Ritchie and Ken Thompson. The precursor of UNIX, Multics, also had hierarchical file systems and the notion of relative paths, but according to "Introduction to MULTICS" it used another notation for that.

提交回复
热议问题