0% found this document useful (0 votes)
10 views1 page

File Path

Uploaded by

rk2680735
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

File Path

Uploaded by

rk2680735
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

These are special names

() 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

urrent bank Relative Paths


working
directory acc
CA N
CAbank
osolute Pahs
lacc
spam.txt
lacclspam.txt CAbank\ac
CCCArulesAAbbaannkkla\cspisapranr.mtx.ttbn
spam.txt .Ispam.txt
Arules
rules
..Arules\spam.txt
spam.txt

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

.\myfile\me.txt from the current


working directory. Gopal
Desktop Cute
workig
Myfile direct
me.txt
96

You might also like