DispersedNet
SiteMap
Unix Concepts
Shell Programming
Shell Scripting
Unix Questions
File Management
«Prev
Next»
Unix Concepts
File Management
List Files Command
Copy Directories Command
Removing Directories Quickly
Unix About Links
Creating File Link
Find Command Search
File Management Conclusion
Unix Customization
Creating Aliases Unix
list current Aliases
Displaying Previous Commands
Repeating Previous Commands
Modifying Previous Command
Changing System Prompt
Storing shell Settings
Customize-environment
Grep Regular Expression
Define Regex
Using Quotes with Regex
Matching Pattern Occurrences
Matching Pattern Position
Turnoff Character Meaning
Regex Conclusion
Pattern Matching - Quiz
editing with vi
vi Review
Text in vi
Creating Text
Creating Command Shortcuts
Configure Editing Environment
Storing Custom Settings
Esditing Multiple Files
Pasting Text Files
vi Editing Conclusion
Managing Disk Space
Removing Directories quickly in Unix - Exercise
Listing, copying, and removing directories
Objective:
Use
ls, cp
, and
rm
to manage files and directories.
Exercise scoring
You will receive 2 points for this exercise.
Submitting your exercise
This exercise is auto-scored. When you have finished, just click the
Submit
button to receive full credit.
Background/overview
In this exercise,
ls, cp
, and
rm
will be used to practice the concepts you learned in the previous three lessons.
Instructions
Log in to your course account.
Type the
script
command to begin saving your UNIX session to a file named
ex200-1
:
% script ex200-1
In your home directory, list your files, including hidden files.
Display a recursive listing of the
images
directory tree.
Copy the
images
directory to the
project
directory.
Change to the
project
directory using the
cd
command.
List the
project
directory. Then list the
images
subdirectory recursively.
Remove the
images
directory you just copied by using the
rm
command instead of
rmdir.
Type
exit
to end the
script
command.
Log out when you are done.
Hints
If you enter the
logout
command, but it responds "Not login shell," it means you forgot to end the
script
command.
Type
exit
and then
logout
.