1

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?

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.