File Path
File Path
() oldersare alsoavailable.
Ihe dot()and dot dot Dame. asingle period ("dot)is
shorthandfor"this that can be
folders For afolder
atual
isConsider
denotedthe
b following dot")files asan example. The relative paths forthe other
(dot and
to periodsfolders
directory" usheedsina gare
working directoryis set to CAbank.
thecurrent
set as shown inthe tigurewhen
spam.txt
.lspam.txt
Crules\sptaxmt .tat
CAspam.
Figure 4.1: The relative paths for folders and files in the
working directoryyCibank
The l' at the start of a relative path is optional. For example, \spam.txt' and
'spam.txt refer to the s
Absolute Path
Relative Path
It points to aspecific location in the file system, It points to the
irrespective of the current working directory. location of a
directory using
current directory as a reference.
tis also referred to as a full path or file path. Itis also referred to as the
Itrefers to the location of afile or non-absolute path.
directory
(filesystem) relative to the root directory in Linux. It refers to the location of a file or
(filesystem) relative to the currentdirectory
directory.
Absolute URLS are used to link to other
that are not located on the same websites Relative URLS are used to link to other
domain. For that are located on the same websites
example, if your pictures are in domain. For example,
and índex in
CASample\Index, c\SamplelPictures
path for pictures is then the absolute ifyour
index in
pictures are in CASample\Pictures and
Pictures".C:ASample\Index,
CASample\Pictures. the relative path is"
Example
Absolute Path: It is afull path of the file
from the root
C: \User\Gopal\Desktop\Wyfile\me.txt directory. C:
Relative Path: It is the path of the file User