Open main menu

CDOT Wiki β

Changes

Tutorial2: Unix / Linux File Management

456 bytes added, 21:11, 7 January 2020
Part 3: Removing Directories
# 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 safely 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 xyz100</span><br><br>NOTE: You should have removed all directories that you have created.<br><br>Let's download and run a checking script to see if you have removed all of the 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 download a '''shell script''' to your home directory that will check your work:<br><span style="color:blue;font-weight:bold;font-family:courier;">wget URL</span><br><br>
# Run the checking script to check your work by issuing the following:<br><span style="color:blue;font-weight:bold;font-family:courier;">bash filename</span><br><br>
=INVESTIGATION 2: MANAGING TEXT FILES=
13,420
edits