Machine-translated by Google. Questions are authored in English.
Top

Discussion

The mv command changes

  • A.the inode
  • B.the inode-number
  • C.the directory entry
  • D.both the directory entry and the inode

Answer: C

The mv command changes the directory entry, option (C). Moving or renaming a file within a file system only rewrites the name in the directory (the link from the name to the inode number), while the inode, with the file's owner, size, times and block pointers, and the inode number remain as they were. Only moving the file to a different file system copies the data to a new inode, but the usual case in this question is the directory entry. So (A) the inode, (B) the inode number and (D) both the directory entry and the inode are wrong.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.