replace hard links with copies

2

I have a file which has other hard links. I want to let it become independent.

I know it can be done like this:

mv myfile temp
cp -a temp myfile

Is there any single command which does not require a temporary file to perform the operation?

pqnet

Posted 2014-08-03T15:39:42.103

Reputation: 468

Answers

2

I did a bit of research on this. Basically, the answer is no, because of the lack of support from operating system. For detail see similar question here and here

pqnet

Posted 2014-08-03T15:39:42.103

Reputation: 468