File system structure difference between cp and mv linux commands

Stephen Samuel samuel at
Thu Jun 3 14:51:23 UTC 2010

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

On Tue, Jun 1, 2010 at 9:57 PM, Lakshmipathi.G <lakshmipathi.g at>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  Software, like love,
778-861-7641                              grows when you give it away
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Ext3-users mailing list