Technology
Search
SiteMap
DBWebApplications
eWebProgrammer
Active Directory Administrationistration
Advanced Unix Concepts
Unix Shell Programming
Shell Scripting
Installing Windows 2000
Linux Network Administration
Unix System Administration
Network Security and Firewalls
Unix Concepts
File Management
Unix Customization
Grep Regular Expression
Removing directories quickly - 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
.