adplus-dvertising
frame-decoration

Question

What if the destination file specified in mv command already exists ?

a.

it will be deleted

b.

it will not be affected

c.

it will be overwritten

d.

an error will be produced

Posted under UNIX

Answer: (c).it will be overwritten

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What if the destination file specified in mv command already exists ?

Similar Questions

Discover Related MCQs

Q. Apart from renaming files, mv command can also

Q. The inode number associated with a file is changed after renaming it.

Q. Which option is used for backing up destination file in mv command?

Q. Which option is used with mv command so that the destination file does not get overwritten?

Q. –f option when used with mv command overwrites existing files without prompting any messages.

Q. Which command is used for comparing two files?

Q. Which command is used for counting words, lines and characters in a file?

Q. Which command is used for knowing the file type?

Q. file command identifies the file type by examining the magic number of the file.

Q. UNIX offers a pager named ____ which has replaced the original pager of UNIX called ____

Q. Which of the following is not an internal command for more?

Q. Which of the following is used to compress files?

Q. Which of the following key options is used with tar to create an archive?

Q. An attribute is a specification of an object that defines its property.

Q. Which command is used to list the attributes of a file?

Q. Which one of the following is not an attribute displayed by ls command?

Q. What are links referred to as in file attributes?

Q. In how many categories are links divided?

Q. Hard linked files are provided with the same inode number as the original one.

Q. Soft linked files are provided with different inode number as the original one.