![](https://seccdn.libravatar.org/avatar/b12cfb65ca4faebc3e3aac17838e8f8d.jpg?s=120&d=mm&r=g)
On Wednesday 21 May 2008 10:13, James Knott wrote:
Dave Howorth wrote:
John Andersen wrote:
mv in a shell only works on file systems. And it doesn't do the link + un-link across partitions, but you knew that.
That's not true. mv is happy to move cross-filesystem. Not on all OS to be sure but it does on Suse.
The directory entry for a file is the "link" or hard link which can only exist on the same partition as the file. If the file is moved to another partition, it has to be copied and then the original deleted. If the move is on the same partition, then you simply have to copy & delete the directory entry. Don't get confused with symbolic links, which can work with different partitions.
You're both right, of course. Everything James says about links, (both hard and symbolic) are true. It's also the case that mv will act like copy (followed by the removal of the original) when the destination directory is on a different file system than the source file(s). Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org