On Wed, 2008-11-26 at 10:11 +0530, lakshmi pathi wrote: > I have noticed that whenever you edit a file content,a new inode > number is assigned with the File. > But Sometime file changes the inode number,Sometimes it remains as older inode. > > Can anyone please let know the concept behind this - modifing content > changes the file's inode but not all the time? It depends on your editor. If it just truncates and overwrites the existing file, the inode number will be the same. If it writes a new file and then renames it over the old one, it'll get a new inode number. [dwmw2@macbook ~]$ ls -i foo.c 2506954 foo.c [dwmw2@macbook ~]$ nano foo.c [dwmw2@macbook ~]$ ls -i foo.c 2506954 foo.c [dwmw2@macbook ~]$ emacs foo.c [dwmw2@macbook ~]$ ls -i foo.c 2506950 foo.c [dwmw2@macbook ~]$ -- dwmw2 -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list