LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-06-2007, 08:56 PM   #1
anguyendapooh
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Rep: Reputation: 0
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?
 
Old 03-06-2007, 09:08 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
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.
 
Old 03-06-2007, 09:46 PM   #3
cfaj
Member
 
Registered: Dec 2003
Location: Toronto, Canada
Distribution: Mint, Mandriva
Posts: 221

Rep: Reputation: 31
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.
 
Old 03-06-2007, 10:20 PM   #4
anguyendapooh
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux filesystem question SPo2 Linux - General 4 02-20-2006 04:52 AM
Question about the Linux NTFS filesystem support driver. Pingachevsky Linux - Newbie 3 01-24-2006 10:07 PM
Filesystem Question Ryan450 Linux - Newbie 8 08-09-2005 01:19 AM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Question Linux Filesystem <-> Windows MFT Negatron Linux - Newbie 3 03-18-2004 11:50 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration