Not a problem, but more of a question on understand the mv command
I was moving a folder from one location to another using the shell command "mv" and through my Windows system I saw two folders at one point. Then later in the old location it was was gone and in the new folder the stuff was there.
So is it safe to say that when the "mv" command is initiated, TrueNAS first copies the folder and the contents and then sends all that to the new destination? So in essence there will be two of everything at some point? Then when the action is done TrueNAS then deletes the old folder (or file) location?
If this is true then at the moment TrueNAS is done, does TrueNAS check the integrity of the files at the new location automatically? And then once done checking it then deletes the "from" items?
I never thought of this until the other day when I moved a decent size folder with contents in it and since I was just sitting there (usually I mv then get something to eat or read something else on the Internet) I just watched it and first time I ever did. Made me just wonder like if I am doing a "mv" and if anything interrupts that then I could delete the new destination folder and files and then redo another "mv" because the source is still intact?
Anyways, just wondering and thank you. I look forward to understanding TrueNAS more and more
I was moving a folder from one location to another using the shell command "mv" and through my Windows system I saw two folders at one point. Then later in the old location it was was gone and in the new folder the stuff was there.
So is it safe to say that when the "mv" command is initiated, TrueNAS first copies the folder and the contents and then sends all that to the new destination? So in essence there will be two of everything at some point? Then when the action is done TrueNAS then deletes the old folder (or file) location?
If this is true then at the moment TrueNAS is done, does TrueNAS check the integrity of the files at the new location automatically? And then once done checking it then deletes the "from" items?
I never thought of this until the other day when I moved a decent size folder with contents in it and since I was just sitting there (usually I mv then get something to eat or read something else on the Internet) I just watched it and first time I ever did. Made me just wonder like if I am doing a "mv" and if anything interrupts that then I could delete the new destination folder and files and then redo another "mv" because the source is still intact?
Anyways, just wondering and thank you. I look forward to understanding TrueNAS more and more
Last edited: