When we do
mv /root/file /root/folder/
It moves /root/file
to /root/folder
I want to do the same thing, but I want to reverse the order of how mv
perceives the arguments
I want to declare an alias (not function) like
alias rm="mv /root/folder"
So, when I would do
rm /root/file
it would move that particular file to the /root/folder
Why, I don't want to use a function?
Because I cannot name the function rm()
as the keyword rm
already exists.
I want to be able to use the keyword rm
because it's a regular habit for all of us.
rm
is when you use other machines, you will assume it's the "safe recycle bin" version. – wisbucky Jun 16 '20 at 22:31