Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The UNIX command rm does not provide for recovery of deleted files through a mechanism like the recycle bin typically found in modern operating systems.

The UNIX command rm does not provide for recovery of deleted files through a mechanism like the recycle bin typically found in modern operating systems. Write a shell script "myrm.sh" that is designed to replace rm. It will move the target file(s) specified as parameters to a recycled bin directory instead of really deleting them. Your script should: Create a new directory to be used as the recycle bin. Print an error message if there are no files specified as parameters, where the correct usage is also explained. Print a feedback message deleting anytime a file with name filename is deleted.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

Explain how to reward individual and team performance.

Answered: 1 week ago