top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+3 votes
374 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 203101181205.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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...