Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using Oracle VM virtual box Ubuntu As you know, the rm command deletes files. But - it doesn't use a waste basket approach to allow

using Oracle VM virtual box Ubuntu image text in transcribed
As you know, the "rm" command deletes files. But - it doesn't use a "waste basket" approach to allow you to undelete things - it doesn't delete directories (you need rmdir to delete an empty directory) Create a script called "de lete. sh" which will take a single argument - the script should complain (give an error message) if the user has given more than one argument - it should automatically use the correct command depending on whether the argument is a file or a directory - any deleted file should be placed in a directory / wasteba sket Some possible enhancements you might want to try - if the argument is a non-empty directory then it should refuse to delete (or perhaps ask for confirmation). - if the filename you are deleting already exists in /wastebas ket then ... well you decide what is sensible - write an "undelete. sh" script

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is the relationship between humans and nature?

Answered: 1 week ago