[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: File system structure difference between cp and mv linux commands



If you do that, then you should probably be ready to use a 'cp', if the source and destination
aren't on the same device (e.g. just in case /tmp becomes a separate filesystem)

On Tue, Jun 1, 2010 at 9:57 PM, Lakshmipathi.G <lakshmipathi g gmail com> wrote:
If you don't have any  issue- in using system calls directly ,then instead of 
system("mv source target").
use -
link ("source","target") // creat hard link
unlink ("source")         // remove old link

[check "man 2 link" and "man 2 unlink"  for more details]

--
Stephen Samuel http://www.bcgreen.com  Software, like love,
778-861-7641                              grows when you give it away

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]