1.

Which option is used with mv command so that the destination file does not get overwritten?(a) -n(b) -f(c) -b(d) -iI got this question in final exam.Enquiry is from Deleting and Renaming files: rm and mv Command in division Handling Ordinary Files of Unix

Answer» CORRECT option is (a) -n

For explanation I WOULD say: If the destination file already EXISTS in mv command then it will be overwritten which can be harmful. To avoid this we use -n option with mv so that the destination file does not GET overwritten. -i option displays interactive messages and ASKS the user before overwriting the destination file.


Discussion

No Comment Found

Related InterviewSolutions