I am working on an old linux learning project and one of the tasks is as outlined below:
"Create an alias that protects files from permanent deletion my moving them to a directory called .Trash. Make a command for crontab that will periodically delete the contents (even if they are directories) of .Trash that are older than 30 days."
I am expected to do this with an alias cli command. I am NOT allowed to use a function or write a small script that takes input.
First, is this possible? I assume yes because its in the book. Second, where to begin here? some of this is obvious, I have made the .Trash dir and can understand the concept of using an alias instead of rm but what cli actions could be placed in the alias to perform this action?
Alias trash=mv xxx .trash xxx
the above would require user input or variable information. What am I not seeing here?