13,420
edits
Changes
→INVESTIGATION 1: ABSOLUTE / RELATIVE / RELATIVE-TO-HOME PATHNAMES
# Issue the following Linux command to create the same directory structure using relative pathnames:<br><br><span style="color:blue;font-weight:bold;font-family:courier;">mkdir -p tutorial3/practice/commands tutorial3/practice/examples tutorial3/notes/lesson1 tutorial3/notes/lesson2</span><br><br>'''QUESTION:''' Which command (pathname type) that you performed in steps '''3''' , '''6''' , and '''9''' required the LEAST number of keystrokes (i.e. characters)?<br><br>
[[Image:dir13.png|right|350px|thumb|]]You may then think that issuing Linux file management commands are better using '''relative''' or '''relative-to-home''' pathnames instead of '''absolute''' pathnames, but this assumption may not always be incorrectcorrect.
Since the current directory location was your '''home''' directory, then it makes sense that using relative or relative-to-home pathnames are more efficient. On the other hand, what if we changed the location to a different directory? Then perhaps, using an absolute pathname would be preferable.