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

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

 



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@xxxxxxxxx> 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
_______________________________________________
Ext3-users mailing list
Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux