CIS 206 iLab 4: Working with Directories
L A B O V E R V I E W
Scenario/Summary
TCO 9: Given a business requirement requiring the writing of a script or a command file, develop a script or command program that meets the specified business requirement for either a Microsoft or a UNIX family operating system.
TCO 10: Given a computing environment using multiple operating systems, prepare a presentation that compares and contrasts the resource management functions of Microsoft and UNIX family operating systems including file system management, memory management, and kernels and shells in both the GUI and the CLI environments.
This lab will have you help you familiarize yourself with the Linux directory structure. You will create and delete a series of files and directories using the vim Editor. To complete the lab, perform the steps listed in the eBook’s Chapter 4 and 5, listed below in each step of the lab. Submit a series of screen captures as proof of successful completion of lab activities.
Deliverables
Desired (Lab) Learning Outcome: After completing this lab, you will able to successfully use vim Editor to:
Display files and directories Create directories Remove directories Copy, move, rename and delete files using the cp, mv, and rm commands Searching for files using the find command
Note: You will be graded based on the steps and tasks you complete successfully. Credit will be given for partial completions of steps.
Important:
All iLabs must be submitted following iLabTechnicalReportTemplate document and the report file must be dropped into the corresponding bascket in the drop box!
After finishing the steps below, you have to submit your iLab in MS Word or any other equivalent format. Always refer toTechnicalReportsWriting:iLabs and Projects for more details about Technical Reports Writings.
L A B S T E P S
STEP 1: Accessing the virtual lab environment and scheduling the lab
Access the virtual lab environment and schedule the Using the vim Editor in Linux lab for week 5.
Important: All Labs must be submitted using the iLabTechnicalReportTemplate to the lab Dropbox for credit.
STEP 2: Access the command prompt
After successfully scheduling and launching the Using the vim Editor virtual lab, click on the begin lab button. The Red Hat Linux desktop will appear. To access the command prompt, click on the red hat icon and select system tools and then terminal. You may also access the command prompt by right clicking on the Red Hat Linux desktop and choosing terminal from the menu. Either method will allow you to access the command prompt. Note the command prompt will appear as [[email protected] root]#. Take a screen shot of this portion. For a demonstration on how to access the virtual lab Red Hat Linux command prompt and starting the vi editor, view the accessing vi editor video.
STEP 3: Using the ls command
In this step, you use the ls command to find information about the file systems on a RedHat Linux system. This step is activity 4-5 of your text. Refer to page 159 of your eBook for step-by-step instructions. Note: skip steps 1-4. These steps are not required, since you have a virtual lab platform. Begin with step 5 and take a screen shot of this portion. For a demonstration on how to perform this step, view the week 5 step 3 video.
STEP 4: Creating Directories
In this step, you use the mkdir command to create directories in a RedHat Linux directory structure. This step is activity 4-11 of your text. Refer to page 169 of your eBook for step-by-step instructions. Note: skip steps 1-4. These steps are not required, since you have a virtual lab platform. In step 5, type cd /home and press enter, this will place you in the home directory and your command prompt should now read[[email protected] root home]#. Begin with step 6 and take a screen shot of the different commands as you complete them. For a demonstration on how to perform this step, view the week 5 step 4 video.
STEP 5: Removing Directories (10 points)
In this step, you use the rmdir command to create directories in a RedHat Linux directory structure. This step is activity 4-14 of your text. Refer to page 175 of your eBook for step-by-step instructions. Note: skip steps 1-4. These steps are not required, since you have a virtual lab platform. In step 5, type cd /home and press enter, this will place you in the home directory and your command prompt should now read [[email protected] root home]#. Begin with step 6 and take a screen shot of the different commands as you complete them. Corrections for this activity, your activity states that using the rmdir mynewdir/myseconddir command will remove both directories. This is not correct, this command will only remove the myseconddir. You will need to type rmdir mynewdir to remove the mynewdir directory. For a demonstration on how to perform this step, view the week 5 step 5 video.
STEP 6: Working with files
In this step, you use the rmdir command to create directories in a RedHat Linux directory structure. This step is activity 4-17 of your text. Refer to page 185 of your eBook for step-by-step instructions. Note: skip steps 1-5. These steps are not required, since you have a virtual lab platform. In step 6, type cd /home and press enter, this will place you in the home directory and your command prompt should now read [[email protected] root home]#. Begin with step 6 and take a screen shot of the different commands as you complete them. Corrections for this activity, your activity states to use the command mv mynewfile /home/User01/myfourthdir. This is not correct. This command must be typed using the following syntax mv mynewfile /home/myfourthdir . You will also receive the following warning after completing step 16 of activity4-17, rm: remove regular file ‘mynewfile’?, type yes and press enter. For a demonstration on how to perform this step, view the week 5 step 6 video.
STEP 7: Finding files
In this step, you use the rmdir command to create directories in a RedHat Linux directory structure. This step is activity 5-15 of your text. Refer to page 242 of your eBook for step-by-step instructions. Note: skip steps 1-4. These steps are not required, since you have a virtual lab platform. In step 5, type cd /home instead of cd /home/User01 and press enter, this will place you in the home directory and your command prompt should now read [[email protected] root home]#. Begin with step 7 and take a screen shot of the different commands as you complete them. Note: pressing ctrl c, will allow you to escape from any of the commands you enter. For a demonstration on how to perform this step, view the week 5 step 7 video.
STEP 8: Exiting the virtual lab
Once you have successfully completed the required work, close the terminal session of your Red Hat Linux. You can now end the virtual lab session. Once you have completed the lab report and attached your screenshots, submit it to the week 5 iLab dropbox.