This preview shows page 1. Sign up to view the full content.
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 10C> 8!ORFz 9 #z99zx , the following are also valid relative paths: ii#, T O,Izi*I iiO O/K/Ix!*Ni*,S, iiii2678.2)8xDSzx W;;61i61C iiiihx! 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 FD9PxzI!x9 iiPiiPTzSP99>Wt/ iiPiiPR xPF, PF, /P# i/i p...
View Full Document
This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.
- Fall '10