A user enters the commands as shown. What is the result after the mv command is entered?

A user enters the commands as shown. What is the result after the mv command is entered?

devasc@labvm:~/Documents$ pwd
/home/devasc/Documents
devasc@labvm:~/Documents$ mv myfile.sh ../Desktop/myfile2.sh
  • The file myfile.sh is moved to the /home/devasc/Desktop directory and renamed as myfile2.sh.
  • The file myfile.sh is copied to the /home/devasc/Desktop directory and replaces the file myfile2.sh.
  • The file myfile.sh is copied to the /home/devasc/Desktop directory and renamed as myfile2.sh.
  • The file myfile.sh is copied and renamed to myfile2.sh in the current directory.

Leave a comment