After cd .. at /, why are we still at /?
Example:
pradeep@pradeep-laptop:/> cd ..
pradeep@pradeep-laptop:/>
Is there a specific reason for this behavior?
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
The root directory has a '.' and a '..' entry in it, and the inode number for each is the same. Traditionally, the inode number is 2; it still is on MacOS X, Linux, Solaris. So, when you do 'cd /; cd ..', you end up at the same location. In the 1980s, there was a system called Newcastle Connection that treated networked computers as being above the root of your local computer. Thus, on such a machine, you would type:
to change directory to a remote file system. (You can find the paper via a Google search of 'Newcastle Connection' - the URL is intractable.) | |||
|
feedback
|
|
The | |||||||||
feedback
|