top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Can we change the inode table entries for a file in unix system ? If yes then how ?

+3 votes
873 views
Can we change the inode table entries for a file in unix system ? If yes then how ?
posted Sep 30, 2013 by Vikram Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Yes, we can do it. Use touch command.
Add -m or -a to specify changes for Modify or Access.

$ touch -a -m -t **********.09 file.txt

This above command will change entry time for both Access and Modify.

answer Sep 30, 2013 by Satyabrata Mahapatra
This will change only time related info but it seems Vikram is talking about inode table entry...
0 votes

We can get inode entry information by

ls -i filename
or
stat filename

You can change the Timestamp value only.
If you want to change the inode value, then you need to move the file to another directory.

answer Oct 1, 2013 by Satyabrata Mahapatra
...