HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-02-21
1 <h3>Important note</h3>
1 <h3>Important note</h3>
2 <p>There are two types of paths:</p>
2 <p>There are two types of paths:</p>
3 <ul><li>Absolute path</li>
3 <ul><li>Absolute path</li>
4 <li>Relative path</li>
4 <li>Relative path</li>
5 </ul><p><strong>Absolute path</strong>shows the location of a folder or a file from the root directory /. In other words, it's a complete path from the very beginning of the filesystem to the target. Examples of absolute paths:</p>
5 </ul><p><strong>Absolute path</strong>shows the location of a folder or a file from the root directory /. In other words, it's a complete path from the very beginning of the filesystem to the target. Examples of absolute paths:</p>
6 <ul><li>/Users/john/Documents/report.pdf</li>
6 <ul><li>/Users/john/Documents/report.pdf</li>
7 <li>/home/craig/photos</li>
7 <li>/home/craig/photos</li>
8 </ul><p><strong>Relative path</strong>shows the location of a folder or a file from the working (current) directory. For example, if you're in /Users/john/ right now, then Documents/report.pdf is a relative path.</p>
8 </ul><p><strong>Relative path</strong>shows the location of a folder or a file from the working (current) directory. For example, if you're in /Users/john/ right now, then Documents/report.pdf is a relative path.</p>
9 <p>This is similar to a complete postal address (<em>3500 Deer Creek Road. Palo Alto, CA 94304, United States of America</em>- absolute path), or a incomplete postal address (5th ave., 12 - relative path, relative to the city you're in).</p>
9 <p>This is similar to a complete postal address (<em>3500 Deer Creek Road. Palo Alto, CA 94304, United States of America</em>- absolute path), or a incomplete postal address (5th ave., 12 - relative path, relative to the city you're in).</p>
10 <h3>Lesson notes</h3>
10 <h3>Lesson notes</h3>
11 <ul><li>'working directory' is your current directory</li>
11 <ul><li>'working directory' is your current directory</li>
12 <li>cd is used to move</li>
12 <li>cd is used to move</li>
13 <li>Unix-based file systems look like trees, with a root directory in the very beginning.</li>
13 <li>Unix-based file systems look like trees, with a root directory in the very beginning.</li>
14 </ul><h3>Recommended reading</h3>
14 </ul><h3>Recommended reading</h3>
15 <ul><li><a>Bash (Unix shell) Wikipedia</a></li>
15 <ul><li><a>Bash (Unix shell) Wikipedia</a></li>
16 </ul>
16 </ul>