Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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?
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
Required, but never shown