LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   question regarding the linux filesystem (https://www.linuxquestions.org/questions/programming-9/question-regarding-the-linux-filesystem-535245/)

anguyendapooh 03-06-2007 08:56 PM

question regarding the linux filesystem
 
Suppose that you have a file that is linked to a file owned by another user.

What can you do so that changes to the file are no longer shared?

PatrickNew 03-06-2007 09:08 PM

Well, you would use the 'unlink' command to destroy the link, then use 'cp' to copy the file back to where the link was. Now you have an identical copy, except that you own it, and your changes won't affect their copy of the file.

cfaj 03-06-2007 09:46 PM

Quote:

Originally Posted by anguyendapooh
Suppose that you have a file that is linked to a file owned by another user.

What can you do so that changes to the file are no longer shared?

Copy it to another file and change that.

If you like, you can then rm the original file and cp your version back to the original name.

anguyendapooh 03-06-2007 10:20 PM

Thank you for your help.


All times are GMT -5. The time now is 08:48 AM.