Unformatted text preview: path is located in the working directory. Sometimes when using relative path we need to work our way back up the tree. Note that this was not an issue when using absolute paths. In most operating systems, two dots (. .) are used to specify the parent direc-tory (a single dot is used to specify the current working directory). There-fore, if the working directory is 10–C> 8!ORFz 9 –#z99zx , the following are also valid relative paths: ii–#, T O,Izi*I ii–O O/K/–Ix!*Ni*,S, ii–ii–2678.2)–8xDSzx –W;;61i61C ii–ii–hx! x,F D#z –2D uDI Unix systems work essentially the same way. Using the directory tree in Figure 11.5, and assuming that the current working directory is P‘!FzP*! z , the following are valid relative paths: R9D#D9Dz PO!FcD z iiP FD9‘PxzI!x9 iiPiiPTzSP99>Wt/ iiPiiPR xPF, PF, /P# i/i p...
View Full Document
- Fall '10
- Parent directory, current working directory