1.

If the destination file does not exists, then mv command creates it.(a) True(b) FalseI have been asked this question at a job interview.My enquiry is from Deleting and Renaming files: rm and mv Command topic in portion Handling Ordinary Files of Unix

Answer»

Right answer is (a) True

To elaborate: If the destination FILE specified in the mv COMMAND does not EXISTS it will be simply created. For EXAMPLE, if in the command mvfile1file2, if file2 does not exists then it will be created. Now file1 will be KNOWN as filename ‘file2’.



Discussion

No Comment Found

Related InterviewSolutions