Search code examples
unixrelative-pathabsolute-path

A bit confused on the relative pathnames started with ../


If my current working directory is /usr/ecs036a/tmp, then why the absolute pathname for ../src/./../passwd+/misc/./root.c is /usr/ecs036a/passwd+/misc/root.c? I thought the ../ means you go to the root directory / already. Thanks!


Solution

  • No, the root directory is /. ../ means the directory above.