Timestamp Help
Does anyone know how I can change a timestamp of the modification time or access time without changing the other?
|
touch -a -m
man touch |
I have tried touch -a <199501052126> test.txt and
touch -m 200311251030 text.txt but after I press enter the date revert back to the current date and time... Did I do something wrong? |
Are you the owner of the file?
If not, run it as root. |
I have all the read, write, and execute permission.
How do I run it as root?... |
You have to log in as root.
|
Double posting under two different user names is still double posting.
|
Read the man pages. It clearly says you need to put -t before you give the timestamp.
So, correct command is: Code:
touch -m -t 200311251030 text.txt |
All times are GMT -5. The time now is 05:28 AM. |