Changes

Jump to: navigation, search

Tutorial2: Unix / Linux File Management

1,232 bytes added, 10:57, 7 January 2020
Part 1: Creating / Removing Directories
# '''Login''' your matrix account.<br><br>
# Issue a command to '''confirm''' you are located in your home directory. You should know how to do this from the previous tutorial.<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold">mkdir uli101</span><br><br>NOTE: You should always confirm that you have created a directory. This can be done by issuing the ls command.<br><br># Issue the following Linux command: <span style="color:blue;font-weight:bold">ls uli101</span><br><br>There are no contents that are contained in this newly-created directory; therefore, no contents appear. A useful option '''-d''' can be used to confirm that the actual <u>directory</u> has been created as opposed to viewing the contents of the directory.<br><br># Issue the following Linux command: <span style="color:blue;font-weight:bold">ls -d uli101</span><br><br>You should now see just the directory listed. You can also combine the -d and -l options to provide more detail regarding the newly-created directory.<br><br># Issue the following Linux command:<span style="color:blue;font-weight:bold">ls -d -l uli101</span><br><br>How can you confirm from the output of this command that the file uli101 is a directory?<br><br># Issue the following Linux command:<span style="color:blue;font-weight:bold">ls -ld uli101</span><br><br>Is the output from this command the same was the output from the previous command? If so, what does this say about how to use multiple options for Linux commands?<br><br>
===Part 2: Navigating / Listing Directories ===
13,420
edits

Navigation menu