Hi to all the experts here, I am a true newbie on bash script and I have a couple of questions need to seek help:

1. What does "safe" delete command script means? I am confused with this statement:
Write a "safe" delete command script. Filenames passed as command-line arguments to this script are not deleted, but instead gzipped if not already compressed, then moved to a /home/username/trash directory.

Basically it is an assignment, does it means those file names typed in command line will not be deleted and compress it to tarz if it is not? How to implement it using file command? Thanks in advance.

It means your script is suppossed to delete the files, but rather than actually deleting them, you will simply tar-gzip them and move them somewhere else. Essentially the "trash bin" process.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.