1.

Which option is used for backing up destination file in mv command?(a) -b(b) -f(c) -v(d) -iI had been asked this question during an online exam.I would like to ask this question from Deleting and Renaming files: rm and mv Command topic in portion Handling Ordinary Files of Unix

Answer»

The correct choice is (a) -b

The best explanation: mv command RENAMES the destination file if it already exists but when -b is USED, it will add a SUFFIX to the filename. This will SAVE a copy of the original file instead of overwriting it. The default suffix is( ~ ).



Discussion

No Comment Found

Related InterviewSolutions