answersLogoWhite

0


Best Answer

the cp command would copy "do" over "done"

if this isn't the behavior you want, you can do "cp -n" to not overwrite if "done" exists, or "cp -i" to prompt you whether you want to overwrite or not.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

The command

mv to do done

will attempt to move 2 files, to and do, into the directory done.

mv do done

first destroys the existing file done, then renames the file do as done.

Because of the way mv operates, you should be very cautious when using it to move large files, such as .isos If you change your mind and interrupt or abort mv while it is in process, you will have no output file and no input file either. The first thing it does is remove the filename from the directory tree, to prevent other apps accessing the file while it is being moved. If it is abruptly terminated, it does not get to reinstate the file in the directory tree. Always let mv complete what it is doing. Then you can undo it afterwards.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

the mv command would change the name of the file "do" to "done", as mv is a command that is used to change the name of a file.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What happens when you give the following command mv to do done if the file named done already exist?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What happends when you give the command mv to do done if the file already exist?

it will give you an error that the file already sxists


What happens when a severe weather conditions already exist?

Waring is issued


What is a syntax error in c plus plus?

Syntax error is a kind of error when compiler does not recognize the command you are trying to use. It happens because of two reasons: first is you forgot to include required library; second is such command does not exist.


How do you link two tables?

Tables are linked through the use of a foreign key, such as with the following command: Alter Table MyTable Add Foreign Key (MyOtherTableId) References MyOtherTable(Id); MyOtherTableId must already be an existing field on MyTable, MyOtherTable must already be another table, Id must exist in MyOtherTable, and MyOtherTableId and Id must share a compatible data type.


Do command economy often exist in democratic systems?

no


What happens if earth doesn't exist?

then we dont exist


Do command economies often exist in democratic countries?

yes


What happens if chemical reaction did not exist?

nothing would exist


What happens if the sun don't even exist?

We wont exist...


What positions already exist in the Legislative Branch?

me


How do I know My logo does not already exist?

KK


What year will laser guns exist?

They already do.