Time Travel Using the Touch Command - On Files - But How? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Time Travel Using the Touch Command - On Files - But How?

I'm trying to change the time at which I created the files in the file managers. How does it work?

6th Jan 2024, 10:50 PM
Pikachu
Pikachu - avatar
1 Answer
+ 2
Celebi✅️ the touch command has a few switches that might be useful. -r copy timestamps from one fille to another -d use a specified date -t similar to -d but only recognizes a rigid date/time format Here is a reference: https://www.man7.org/linux/man-pages/man1/touch.1.html
7th Jan 2024, 1:05 AM
Brian
Brian - avatar