File system structure difference between cp and mv linux commands

Stephen Samuel samuel at bcgreen.com
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
filesystem)

On Tue, Jun 1, 2010 at 9:57 PM, Lakshmipathi.G <lakshmipathi.g at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ext3-users/attachments/20100603/5b175f90/attachment.htm>


More information about the Ext3-users mailing list