Search code examples
fileunixcopymove

Unix: When I move a file, what's the process of it?


I use Unix system, and when I move a file, how does Unix handle the process?

Does it copy the file first, then delete the origin file, or any other way ?


Solution

  • No, moving doesn't really copy for performance reasons, unless the source and the destinations are on difference filesystems.

    See this post