I know you can use "touch" to change the access and modify timestamps of a file using the "-t" flag but is it possible to change the "change" timestamp. If so how would I go about doing this? Thanks so much for your time.
You're asking how to set the
ctime value of a file. The only way to do that is to change the system date and then change the file, which is quite a crude method that will probably cause harm to the rest of your system.
If you're using
ext4 also?) you can use
debugfs to change it, but that requires that you unmount the filesystem first. You can find info at COMMAND LINE KUNG FU: Episode #80: Time Bandits (the start is about Windows; skip about halfway down to "Hal has the touch") to read about commands like this:
debugfs -w -R 'set_inode_field /tmp/test ctime 200901010101' /dev/mapper/elk-root
Without using filesystem metadata hackery like that, you can't do it.
The what? The modified time is the time the file was last changed.
$ touch test $ stat test File: `test' Size: 749 Blocks: 8 IO Block: 4096 regular file Device: fd01h/64769d Inode: 33 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/ me) Gid: ( 1000/ me) Access: 2012-03-06 18:43:19.000000000 -0600 Modify: 2012-03-06 18:43:19.000000000 -0600 Change: 2012-03-06 18:43:19.000000000 -0600 $ touch test $ stat test File: `test' Size: 749 Blocks: 8 IO Block: 4096 regular file Device: fd01h/64769d Inode: 33 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/ me) Gid: ( 1000/ me) Access: 2012-03-06 18:43:23.000000000 -0600 Modify: 2012-03-06 18:43:23.000000000 -0600 Change: 2012-03-06 18:43:23.000000000 -0600