Which of the following commands or sequences of commands will rename a file x to file y in a Unix system ?
ans is B
The mv command is used to move or rename files.
mv renames file SOURCE to DEST, or moves the SOURCE file (or files) to DIRECTORY.
cp = copies files from one location to another
rm : deletes a file without confirmation (by default).
Therefore cp x, y // will copy x to y
ans rm x // will deletes the file