1.

Which command is used for renaming files?(a) rename(b) mv(c) cp(d) moveI had been asked this question in a national level competition.The above asked question is from Deleting and Renaming files: rm and mv Command in portion Handling Ordinary Files of Unix

Answer»

The CORRECT CHOICE is (B) mv

Explanation: mv command is used for renaming files. This command does not create a copy of the file, it simply renames it. To rename FILE1 to file2 simply type,



Discussion

No Comment Found

Related InterviewSolutions