Open main menu

CDOT Wiki β

Changes

Tutorial2: Unix / Linux File Management

359 bytes added, 21:01, 7 January 2020
Part 3: Removing Directories
# Confirm that you are located in your home directory.<br><br>The rmdir command is used to remove empty directories.<br><br>
# Issue the following Linux command to remove the empty directory called '''uli101/tutorials''': <span style="color:blue;font-weight:bold;font-family:courier;">rmdir uli101/tutorials</span><br><br>
# Issue the following Linux command to remove the empty directory called '''uli101''': <span style="color:blue;font-weight:bold;font-family:courier;">rmdir uli101</span><br><br>NOTE: You should get an error message, since the '''uli101''' directory is '''NOT''' empty.<br><br>To remove non-empty directories, you can use the rm -r command. The -r option stands for recursive, which can travel down the directory paths and their contents.<br><br># 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 uli101</span><br><br>
=INVESTIGATION 2: MANAGING TEXT FILES=
13,420
edits