A file hello.c is renamed to hi.c. As the output of stat command shows, [change] time stamp has been changed. usually it is changed when inode of file got modified. Why renaming with mv command changes the content of inode and actually which attribute is modified?
xyz@linuxPC:~/Documents$ stat hello.c
File: ‘hello.c’
Size: 568 Blocks: 8 IO Block: 4096 regular file
Device: 809h/2057d Inode: 261889 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ xyz) Gid: ( 1000/ xyz)
Access: 2015-04-22 19:54:34.889330399 +0530
Modify: 2015-04-22 19:54:34.241330427 +0530
Change: 2015-06-21 15:46:45.365465523 +0530
Birth: -
xyz@linuxPC:~/Documents$ mv hello.c hi.c
xyz@linuxPC:~/Documents$ stat hi.c
File: ‘hi.c’
Size: 568 Blocks: 8 IO Block: 4096 regular file
Device: 809h/2057d Inode: 261889 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ xyz) Gid: ( 1000/ xyz)
Access: 2015-04-22 19:54:34.889330399 +0530
Modify: 2015-04-22 19:54:34.241330427 +0530
Change: 2015-06-21 15:48:23.361469822 +0530
Birth: -