Among directory entry, i-node and the file contents, which will be changed when a file is updated?
Among directory entry, i-node and the file contents, only i-node and file contents will be changed when a file is updated.
An i-node is an entry in i-node table, containing information (the metadata) about a regular file and directory. An i-node is a data structure on a traditional Unix-style file system.
Whenever a user or a program needs access to a file, the operating system first searches for the exact and unique i-node (i-node number), in a table called an i-node table. In fact the program or the user who needs access to a file, reaches the file with the help of the i-node number found from the i-node table.