Changes

Jump to: navigation, search

Tutorial2: Unix / Linux File Management

7 bytes removed, 10:35, 12 January 2021
Part 3: Removing Directories
# Issue the following Linux command to remove the '''uli101''' directory and its contents: <span style="color:blue;font-weight:bold;font-family:courier;">rm -r uli101xx</span><br><br>
# Issue the '''tree''' command to confirm that the uli101 directory (contained in your home directory) and its contents have been removed.<br><br>'''NOTE:''' To <u>safely</u> remove non-empty directories, you can add the '''-i''' option which will prompt the user if they wish to remove contents as it your travel recursively down a directory to remove directories and their contents.<br><br>
# Issue the following Linux command (entering "y" when prompted): <span style="color:blue;font-weight:bold;font-family:courier;">rm -ri xyz100xx</span><br><br>'''NOTE:''' You should have removed all directories that you have created.<br><br>Let's run a checking script to see if confirm that you have correctly removed all of the those directories that you earlier created.<br><br>
# Make certain that your current directory is '''your home directory'''.<br><br>
# Issue the following Linux command to run a checking script: <span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/scripts/week2-check-3</span><br><br>
13,420
edits

Navigation menu