the command mv and its effects

  • Hi all,

    I just logged in my LE 9.2.7 via SSH and did: mv </var/media/HDD1/Directory> </var/media/HDD2NewDirectory>

    Then I interrupted the process using crtl + z and set it to background using bg.

    1) Since there is no. command. like disown I expected this to be built in.

    2) I exited the SSH shell and logged right back in. Process was not there and. file got "lost".

    Questions:
    1) Is there a way to recovery the file using LE built in tools?

    2) how to get a job disowned from shell in LE, busybox 1.31.1

  • I use a automated mv command daily to move (copy + delete) the local backup of a remote device via a network shared directory and I observed the following: the local file is only deleted if the file was copied to the remote device without errors. I am surprised that you lost the source files without being copied correctly.

    Edited once, last by elonesna (August 1, 2021 at 4:35 PM).

  • sorry for this question but did you entered

    mv </var/media/HDD1/Directory> </var/media/HDD2NewDirectory>

    or

    mv /var/media/HDD1/Directory /var/media/HDD2NewDirectory

    ??