MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The mv command changes
A
Only the directory entry
B
Only the directory entry and i-node
C
Only the i-node number
D
None of the above
Explanation: 

Detailed explanation-1: -MV (move) is a Unix command that moves one or more files or directories from one place to another. If both filenames are on the same file system, this results in a simple file rename; otherwise the file content is copied to the new location and the old file is removed.

Detailed explanation-2: -Use the mv command to change the name of a file without moving it to another directory.

Detailed explanation-3: -Linux mv command is used to move existing file or directory from one location to another. It is also used to rename a file or directory. If you want to rename a single directory or file then ‘mv’ option will be better to use.

Detailed explanation-4: -By default, mv overwrites an existing file without warning or confirmation whenever you have write permission on the file. The mv utility asks you for confirmation if the following conditions are met: you haven’t specified the-f option.

Detailed explanation-5: -Use the mv command to move a file from one location to another. To move a file on a computer with a graphical interface, you open the folder where the file is currently located, and then open another window to the folder you want to move the file into. Finally, you drag and drop the file from one to the other.

There is 1 question to complete.