Say I have a file ```/templates/apple``` and I want to

* put it in two different places and then
* remove the original.

So, ```/templates/apple``` will be copied to ```/templates/used``` AND ```/templates/inuse```
and then after that I’d like to remove the original.
Is ```cp``` the best way to do this, followed by ```rm```? Or is there a better way?
I want to do it all in one line so I’m thinking it would look something like:
```cp /templates/apple /templates/used | cp /templates/apple /templates/inuse | rm /templates/apple
```
Is this the correct syntax?
And will it work if I have the files open in some text editors (like VS Code)? Will it create copies with the same permissions? (I presume it will).
I’m guessing if I have multiple files to copy then I would make a for loop, like:
```for file in apple banana orange; do cp /templates/$file /templates/used /templates/inuse && rm /templates/$file; done
```
Is there
If so, does it make sense to do it in that order (first copying to ```used``` and then to ```inuse```)?
It seems logical, but wouldn’t it be better to copy to ```inuse``` first to avoid the risk of overwriting whatever is there instead? What is the safer way of doing it?
To be clear, my concern is to avoid overwriting something that exists in the destination folders in case I’m in a