Changes

Jump to: navigation, search
INVESTIGATION 1: ABSOLUTE / RELATIVE / RELATIVE-TO-HOME PATHNAMES
# To remove this directory structure, issue the following Linux command (enter "'''y'''" at each prompt to remove ALL contents):<br><span style="color:blue;font-weight:bold;font-family:courier;">rm -ri /home/youruserid/tutorial3</span><br><br>
# Issue a command tree command as you did in '''step #4''' to confirm that the directory structure has been removed.<br><br>
# Issue the following Linux command to create the same directory structure using relative-to-home pathnames:<br><br>'''NOTE:''' You usually generate the ~ character by Holding down '''SHIFT''' and press the button<br>to the <u>left</u> of the number '''1''' above the text on your keyboard.<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>Did this command require less typing than the previous command using absolute pathnames?<br><br># Issue the tree command to confirm the directory structure was properly created.<br><br>Let's remove the '''tutorial3''' directory and its contents and issue the same command using '''relative pathnames'''.<br><br># Issue the same command as you did in '''step #45''' to remove the '''tutorial3''' directory and its contents safely.<br><br>
# Issue a Linux command to confirm you removed the '''tutorial3''' directory and its contents.<br><br>
# 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 <u>LEAST</u> number of keystrokes (i.e. characters)?<br><br>
13,420
edits

Navigation menu