Linux script to Implement, as a script, a “safe” delete command

Implement, as a script, a "safe" delete command, Filenames passed as command-line arguments to this script are not deleted, but instead gzipped if not already compressed (use file to check), then moved to a ~/TRASH directory. Upon invocation, the script checks the ~/TRASH directory for files older than 48 hours and permanently deletes them.


In Progress 07-12-2019 Zeeshan 195

Please briefly explain why you feel this question should be reported .

Answers (0)

Leave An Answer