COMPUTER SCIENCE AND ENGINEERING
UNIX
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
The absolute path starts from the root or “/”
|
|
Directories should be accessed by relative path only.
|
|
Files should be accessed by absolute path only.
|
|
Relative path starts from “.” (current directory) or “..” or (parent directory)
|
Detailed explanation-1: -Relative paths specify a location starting from the current location, while absolute paths specify a location from the root of the file system.
Detailed explanation-2: -First, what’s the difference between a relative file path and an absolute file path? A relative path describes the location of a file relative to the current (working) directory*. An absolute path describes the location from the root directory.
Detailed explanation-3: -A relative path is a link that points to a file location on the page where the link is located. Unlike an absolute path, a relative path does not include the domain name of the website. Instead, it contains just the directory and slug.
Detailed explanation-4: -A relative pathname begins with one of the following: a directory or file name; a “. ‘’ (pronounced dot), which is a shorthand notation for your current directory; or a “..” (pronounced dot dot), which is a shorthand notation for the directory immediately above your current directory in the file system hierarchy.