Open main menu

CDOT Wiki β

Changes

Tutorial2: Unix / Linux File Management

118 bytes removed, 21:01, 6 January 2021
INVESTIGATION 1: CREATING & MANAGING DIRECTORIES
# Issue the following Linux command to remove all of the directories that you have created:<br><span style="color:blue;font-weight:bold;font-family:courier;">rm -r uli101xx acp100xx xyz100xx</span><br><br>
# Issue the following single Linux command to create the entire directory structure:<br><span style="color:blue;font-weight:bold;font-family:courier;">mkdir -p uli101xx/notes uli101xx/tutorials uli101xx/examples acp100xx xyz100xx</span><br><br>'''NOTE:''' The '''-p''' option allows "parent" directories to be automatically created first to then create their subdirectories.<br><br>
# Issue the following Linux command to confirm that all of the directories have been created:<br><span style="color:blue;font-weight:bold;font-family:courier;">ls -ld /home/your-seneca-id/uli101xx/ /home/your-seneca-id/uli101xx/notes /home/your-seneca-id/uli101xx/tutorials /home/your-seneca-id/uli101xx/examples /home/your-seneca-id/acp100xx /home/your-seneca-id/xyz100xx</span><br><br>
'''Running a Shell Script to Check your Work'''
13,420
edits